Jump to content

Recommended Posts

Posted (edited)

The situation is as follows...

We have 3 methods to save data:

1 - We save player data every time it changes.

2 - We save player data at a time interval.

3 - We save player data when disconnecting from the server.

Now the question is, which method is more optimized and which of them have a low risk of data loss in case of an error.

In my opinion method 1 is good for data security but we lose on the optimization side (so I think) even if we use async

 

PS. I forgot to specify that we use mysql

Edited by CMHDev
I forgot to specify that we use mysql
Posted

I save money on every change, few things on payday like xp,level and most of the things on player disconnect. I think you should balance it depending on what you are saving and how often data is changed.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...