Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

Reply
 
Thread Tools Display Modes
  #16  
Old 01-17-2013, 10:22 PM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Quote:
Originally Posted by lerxst2112 View Post
Yes, changing a qglobal writes to the database, but reads are cached, and it's likely that reads are more common than writes.
Reads are not cached if I understand the code correctly. They are read out of the DB every single time. See Parser::Event.

Also see any references to QGlobalCache::GetBucket - That is never used for anything other than 'combining'.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote
  #17  
Old 01-17-2013, 10:52 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

You're right, Parser::Event accesses the database. Parser::Event is also never called.
Reply With Quote
  #18  
Old 01-17-2013, 10:57 PM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Quote:
Originally Posted by lerxst2112 View Post
You're right, Parser::Event accesses the database. Parser::Event is also never called.
Yep when I realised I had a good laugh :p
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote
  #19  
Old 01-17-2013, 10:59 PM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Honestly after reading through all this code - It has become to clear to me that I will probably never use qglobals (until now I had nothing against it). I would feel much more confident in using what I have made. It may not be as fast (I can not even determine that for sure) but it is simple, has few moving parts. If something breaks I do not need to dig through thousands of lines of code.

Each to there own.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote
  #20  
Old 01-17-2013, 11:47 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

If you find a way to break qglobals I'll give you a gold star.
Reply With Quote
  #21  
Old 02-28-2015, 01:50 AM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Necro'ing post, yeah, I know.

No need for the gold star, I'd rather have a fix please.

https://github.com/EQEmu/Server/issues/339

I do wish I could extend a hand, however, in my limited C++ knowledge (pales in comparison), I cannot find the source of the issue. Sorry.
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 02:28 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3