Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2003, 10:16 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

Oh, on the multiple instances part, here's another scenerio.
Say you run 3 queries, coping the information into 3 sets of variables before you want to look and see if any failed, you would have overwritten the information from the first two following your theory, but RunQuery as it is now just copies all relevent data into the variables you provide, freeing you to not have to worry about, even in a single thread situation, the order in which you run queries.

I thought about connection pooling and such, but would honestly would use more resources than you'd gain speed by slowing down the server with multiple connections from each world. It would be perfect if you could create a single pool that all zones on a server drew from, but the interprocess communication is difficult there, unless you redid things so you could host multiple zones in the same process space, which has been thought about before, but always died because we dont want a crash of one zone bringing down 20 zones.

You may want to take a look at the AsyncWork objects, they do pretty much what you're talking about, copy all possible information (result set, all functions that'd be run on the mysql variable, etc) into the class and then allow it to be used later.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 03:07 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3