Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is DataStore reliable?

Asked by
Bloxks 30
10 years ago

Since DataStore has [60 + (10 x player)] and GetAsync cache limitations, is DataStore reliable at storage, for example, RPG levels, expierence, etc.

Thank you.

3 answers

Log in to vote
2
Answered by 10 years ago

GetAsync only has a 10 second cache. You can store your stats as values while the player is in-game and then save them with DataStore every 20 seconds or so.

The reason I said to use values is because if someone gains experience less than 10 seconds after they gained the other experience it will cache. Saving them with values AND THEN transferring them to the database obviously wouldn't cache.

Ad
Log in to vote
0
Answered by
Vrakos 109
10 years ago

In my opinion, yes it is.

There's more advantages to DataStoreService than data persistence.

With DataStore, you can access a players stats via admin. This could be useful for competitions and they're not online to receive their points award. (Just one of the thousands of uses of DataStore)

Log in to vote
0
Answered by 10 years ago

It is very reliable. It saves data even when a game shutdown/crashes

Answer this question