Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

DataStore request was added to queue. If request queue fills, further requests will be dropped?

Asked by 4 years ago

I dont know what is the meaning of this "DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests"

0
Your question is being held under moderation review due to you not describing your problem consistently. NotFrindow 346 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

For future refference please follow how-post-good-questions-answers including the code and explaining what you are trying to achieve will enable us to help you in more detail.

DataStores have limitations on how fast they are able to get and set data. Please review the limits and error handling wiki page to find out how to avaid this error.

In the majority of DataStore code I have seen this error is caused by the user saving data to the same key path (limits apply to only the full path [scope][data store name][key]) within 6 seconds. The result is that the request is queued.

example code

local ds = game:GetService("DataStoreService"):GetDataStore("test")

ds:SetAsync('test', 1)
ds:SetAsync('test', 2) -- this requst will be wait 6 seconds as we just set they key test to 1

Queued requests can be dropped if the queue is too large avoid designing a save system that floods the keys.

One common cause it when you save within a chenged event. You have 0 control over when data is saved as the event will run as many times as it is triggered.

I hope this helps.

If you need additional help please post a new question with all of the details and explantaion of what you are doing. This will often also lead to more upvotes.

0
So how do i remove it? HandznLegz 18 — 4y
Ad

Answer this question