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

Quote:
Originally Posted by DerickClark
Посмотреть сообщение
Yes. cause you need to keep up with player data at all times of loses!
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)