mysql save
#1

which is better for saving in mysql,to save the item after editing anything in it,or saving them all when the servers restarts and one per 5 minutes?which is faster and better?
Reply
#2

I'd say saving after a user has finished a process maybe less hass and more efficient. Though, I suggest saving a users posistion, or anything related to that under OnPlayerDisconnect (or/ and every 5 minutes just incase your server crashes for what-ever reason!).
Reply
#3

I save all player's stats every minute in case the server crashes for whatever reason. But if you're changing the player's stats, you should save the them straight after the task was finished.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)