Should a database save every-time a player disconnects?
#5

Quote:
Originally Posted by Dignity
Посмотреть сообщение
No.. Saving all the data when a player quits is bad practice.


You send queries to the database when data changes. Not a big bundle of shit where half the values remain the same.

Does the player buy a skin? Update their skin variable in the database.
Do they bank some money? Update the bank money variable.

Nothing else.

You update the database when it changes in the game.
But you can do that also update during the game.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)