How can I fix this error, " DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = 1521530933 - ". I have thought of sending less request by deleting some items, but then people lose a bit of interest in my game since there are not many options to play with. How do I fix this error without deleting anything?
The warning means you’re sending too many datastore requests at once. Send less requests at a time, you don’t have to remove your items from the game.
When you get this error, you are not sending too much information, you are sending information too quickly. Datastores have a limit on the number of requests you can send, and those can be found at the Data Stores | Roblox Creator Documentation page on the wiki. For specific information on what the limits are check the “Server Limits” section of page. Keep in mind you can also see how many requests you can still send using DataStoreService | Roblox Creator Documentation. Hope this further reading helps!
Thank you so much @WithinCode, this seems to be a great source of information!
Would I use something like, wait(3) in between scripts to make the requests send slower?
Well that depends on what you’re saving. If you’re saving something like the player’s money, then you can just save the money value as the player is leaving. Roblox recently released an article going over the basics on how to make a simple data store found here.
Here is an excerpt from the article:
A common mistake may be updating a player’s gold data every time they collect a gold piece. Instead, store the player’s gold in a variable and only update the data store occasionally, such as with a periodic auto-save and/or when the player leaves the game.
Side note: Typically, auto-saves only occur every couple of minutes, not every few seconds.
This is just one example I could think of as to why you’re sending data so quickly, as you didn’t provide any examples/images.
Well, its not from money value, but instead it’s from a tool
Also, how would I send data slower, I’ve heard about it, but I don’t know how to.
Again, it depends on what you’re doing. I’m not the best with data-stores but depending on what you’re trying to do I think just adding a
wait () for a couple of seconds should be fine like you said earlier.
Are you able to give us some screenshots and/or code so we can see what you’re actually trying to do?
I fixed my problem, thank you everyone for your help