Hi! So, the title basically says it all. I want to know, if I use one data store to save multiple data using different id’s for the same player, is it more efficient than using multiple stores for each value I have to save. Any help would be appreciated! Thanks!
A single one by far.
The only reason I can think of to have multiple datastores would be ordered datastores since they can only contain a number value in order to properly return. The only other case would be if your DS reaches the limit which is hard to do given that the limit is 4 million characters per key.
Oh, alright! Thanks for the reply!
No worries.
It’s more efficient for a few reasons:
1- less likely to fail. If you are sending out multiple getasync requests, the chances of one failing are increased. You can handle DS failures but it’s much easier to handle a single datastore failure.
2- the GetAsync limit is 60 + (number of players * 10) per server. If you’re only creating one or two requests, you’re much less likely to reach this limit. Checkout datastore limits.
3- since GetAsync is asynchronous, getting a single datastore will be much faster (unless you’re dedicating multiple threads for getting multiple datastores.
4- Looks more professional, self explanatory.
If you’re having trouble with it, check out #resources, the community has many available resources for helping manage data.