Raised This Month: $ Target: $400
 0% 

Plugin Optimization Help KeyValues


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 04-25-2010 , 16:22   Re: Plugin Optimization Help KeyValues
Reply With Quote #6

Caching reads is a good idea, but I would tend to make writes immediate, rather than waiting for the player to leave and then overwriting all their settings. This means that:
- If the plugin/server crashes, no data is lost
- If no settings are changed (the most likely case), no writes are performed
When changing a setting, just write to the database and the cache at the same time, then discard the cache when the player leaves.
__________________
Scone is offline
 



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 07:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode