Would be it better to have multiple datastores for your game or just one?
Like one datastore for clothing values, and another for stat
Would be it better to have multiple datastores for your game or just one?
Like one datastore for clothing values, and another for stat
In my opinion, it is better to have multiple datastores so you can save data to a playerid for the key and the value for whatever the item is i.e., clothing, stats, etc. instead of trying to save all of the data in one datastore and trying to remember which part is for what. The disadvantage to having multiple datastores is that there will be for Async requests, and roblox has a limit of those.
Gets 60 + numPlayers * 10 Sets 60 + numPlayers * 10 GetSorted 5 + numPlayers * 2 OnUpdate 30 + numPlayers * 5 All of these are per minute.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
If you wanted to reset a certain value in your DataStore, you could just change the name of it. Let's say we had a value named Exp. if you wanted to reset it, you could name it EXp or EXP or EXP1 or 2 etc...
Another way of resetting it is by setting it to nil if I'm not mistaken.
Even tough documentation says SetAsync() accepts nil, it does error whaen attempting to set to nil