Is there a problem with using multiple data stores?

Is there a problem with using multiple data stores? I thought I heard it somewhere that roblox only allow saving about 60 data stores per second across all games and I want to make sure that it is safe to use multiple. My experience has around 6 data stores across all places (unfortunately more to come) and I was wondering if saving would be bugged because of it!

1 Like

My game uses 6 datastores, and doesn’t seem to have any issues, but I have only recently added these datastores, and my game only has about 80 visits since then. I think the only issue with a bunch of datastores is how often you can save and get data from them.

1 Like

The limit for each server is 60 + (number of players in server * 10) per minute. The only reason saving would be “bugged” is if you exceed the limits and therefore the data doesn’t save. Even in that case, you can set up a pcall to detect when it fails and call the save function again after a delay.

You can see all the limits for different DataStore requests here.

2 Likes

So on behalf of using multiple data stores per experience for multiple features, it is not necessarily a bad thing, right?

Not necessarily, just make sure you’re not using separate datastores for things that can easily be stored in one (e.g. 2 separate datastores for small values like money and wins). There is a limit of about about 4.2M characters per key so you should be able to fit everything you need under a single key.
You could also use a single datastore and have multiple keys per user (User1_Place1Data, User1_Place2Data, etc.), as the docs suggest here.

1 Like

Oh wow! I never thought about having multiple keys per Data Store! I’m kind of new to all this so this gives me a different perspective about it! Thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.