Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::General > Archive::Server Discussion

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #20  
Old 07-22-2004, 10:17 PM
cooter
Fire Beetle
 
Join Date: May 2004
Posts: 3
Default

Meeble, are there tons of open petitions in your database?

When a zone boots up, it loads all the petitions from the database into memory. If you have a lot of petitions, this process can take a little while, sometimes causing zoning clients to think they're disconnected.

If this is your problem, there are two ways to go about rectifying it. 1. You could log on more and answer/delete those petitions often (a pain), or 2. Modify the function to load fewer petitions into the memory (much easier).

If you want to go with (2), here's your fix. zone/petitions.cpp, line 288ish, replace the "if (RunQuery ...)" line with this:

Code:
if (RunQuery(query, MakeAnyLenString(&query, "SELECT petid, charname, accountname, lastgm, petitiontext, zone, urgency, charclass, charrace, charlevel, checkouts, unavailables, ischeckedout, senttime, gmtext FROM petitions ORDER BY senttime ASC LIMIT 0,15"), errbuf, &result))
This code will load the 15 oldest petitions at a time instead of all 4 million of them. The only real downside of doing this is you'll have to delete these old petitions to see the newer ones, but realistically you should be doing that anyways.

(note that I wrote this for a 5.6 server so it's possible, but doubtful, that this may not work if you use a different version)

Hope this helps.
 


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 06:55 AM.


 

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