Is there a dataStore limit?

Well, I have a question regarding this, which is whether there is a limit to the use of the DataStore, since I am using eight and it put a yellow text in the output and I don’t know how to remove it.

There’s a limit per minute for GetAsync(), SetAsync() [Basically those mean getting or saving data], the limit is 60 + NumberOfPlayers * 10

So if there were 3 players, it would be 60 + 3 x 10, or 90 datastore requests per minute in that 3 player server. 4 players would be 60 + 4 x 10, and so on.

Keep in mind, saving data or getting saved data can fail, so you should be repeating a pcall function until it succeeds such as something like

repeat
    local success, err = pcall(function()
	--(do SetAsync() or GetAsync() or whatever you want)
    end)
until success

Essentially, you should be looping saving data until it succeeds (since it can fail), but don’t worry, this repeat loop loops usually loops only once or twice before succeeding so you won’t have to worry about overloading your savedata on your server (in other words, don’t worry it won’t.

You can find out more here:

3 Likes

use wait (or runservice heartbeat) on a loop if the saving or getting data keeps failing

Try putting all of the data into 1 table, it will reduce the number of datastore requests. How often are you changing data?

oh you’re right I forgot the wait() woops