Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it better to have multiple datastores or just one?

Would be it better to have multiple datastores for your game or just one?

Like one datastore for clothing values, and another for stat

1 answer

✓ Accepted answer

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.

3 comments

0

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...

0

Another way of resetting it is by setting it to nil if I'm not mistaken.

0

Even tough documentation says SetAsync() accepts nil, it does error whaen attempting to set to nil

This discussion is preserved as it was. New answers, comments, and votes are closed.