Posts: 498
Threads: 233
Joined: Aug 2013
Reputation:
0
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?
Posts: 485
Threads: 18
Joined: Jun 2013
Reputation:
0
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!).
Posts: 692
Threads: 69
Joined: Sep 2012
Reputation:
0
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.