Fix "DataStore Request Was Added to Queue" in Roblox Studio
Why Roblox warns "DataStore request was added to queue", what the request limits are, and how to cut duplicate saves so requests stop getting dropped.
On this page
If your Output window shows “DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.” followed by a key name, your game is sending data store requests faster than Roblox will process them. The warning isn’t an error yet, but it’s the step right before requests start getting dropped. The fix is almost always to send fewer, better-timed requests, not to add retries.
What the DataStore queue warning means
Every Roblox server gets a request budget per minute for each type of data store call. On top of that, each key has its own throughput limit shared across all servers. When a call goes over either limit, Roblox doesn’t fail it right away. It puts the request in a queue and works through the queue in order.
Roblox’s error codes and limits page documents four queues: Set, Ordered set, Get, and Ordered get. Each queue holds 30 requests. While a request sits in the queue, the script that made it keeps yielding. Once a queue is full, new requests are dropped completely and fail with one of these errors:
| Code | Message |
|---|---|
| 301 | GetAsync request dropped. Request was throttled but queue was full. |
| 302 | SetAsync request dropped. Request was throttled but queue was full. |
| 303 | IncrementAsync request dropped. Request was throttled but queue was full. |
| 304 | UpdateAsync request dropped. Request was throttled but queue was full. |
| 305 | GetSorted request dropped. Request was throttled but queue was full. |
| 306 | RemoveAsync request dropped. Request was throttled but queue was full. |
A dropped save is real data loss, so don’t treat the queue warning as harmless noise.
flowchart LR
A["Script calls UpdateAsync"] --> B["Over budget: request queued"]
B --> C["Queue under 30: runs later"]
B --> D["Queue full: error 301-306"]
Roblox DataStore request limits
These are the default per-server limits from the Creator Hub, as of November 2026. numPlayers is the number of players in that server.
| Request type | Methods | Requests per minute |
|---|---|---|
| Standard read | GetAsync, GetVersionAsync, GetVersionAtTimeAsync, UpdateAsync | 60 + numPlayers × 40 |
| Standard write | SetAsync, IncrementAsync, UpdateAsync | 60 + numPlayers × 40 |
| Standard list | ListDataStoresAsync, ListKeysAsync, ListVersionsAsync | 5 + numPlayers × 2 |
| Standard remove | RemoveAsync | 60 + numPlayers × 40 |
| Ordered read | GetAsync, BatchGetAsync, UpdateAsync | 60 + numPlayers × 40 |
| Ordered write | SetAsync, IncrementAsync, UpdateAsync | 30 + numPlayers × 5 |
| Ordered list | GetSortedAsync | 5 + numPlayers × 2 |
Notice that UpdateAsync shows up under both read and write, so it uses both budgets. Separately, every key has a throughput limit across all servers: 25 MB per minute for reads and 4 MB per minute for writes.
Common causes of the warning
Most reports on the DevForum come down to a handful of patterns:
- Saving on every change. Calling
SetAsynceach time a coin is collected or a stat ticks up burns through the write budget within seconds in a busy server. - Saving the same player twice when they leave. A
PlayerRemovinghandler and aBindToClosehandler that both save every player hit the same key at the same moment. This is especially common when you stop a playtest in Studio, because both fire together. - Many data stores per player. Using a separate data store (or key) for coins, level, inventory, and settings multiplies every load and save by four or more.
- A tight auto-save loop. A
while true doloop that saves every few seconds, or one that saves all players at the exact same moment. - Ordered data stores for leaderboards. Ordered writes have a much lower budget (30 + numPlayers × 5), so updating a global leaderboard too often queues requests fast.
How to fix it
1. Keep one key per player and load it once
Roblox’s data store best practices recommend storing a player’s data under a single key when it fits within the 4 MB value limit. Load it once when the player joins, then read and change a table on the server for the rest of the session. Your gameplay code should never call the data store directly.
2. Route every save through one guarded function
This server Script (put it in ServerScriptService) shows the pattern. It’s a minimal example, so test it in Studio and add your own retry and session-locking logic before relying on it in a live game.
local DataStoreService = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local store = DataStoreService:GetDataStore("PlayerData")
local cache = {} -- player -> data table for this session
local saving = {} -- player -> true while a save is running
local function save(player)
if saving[player] or cache[player] == nil then
return
end
saving[player] = true
local key = "Player_" .. player.UserId
local ok, err = pcall(function()
store:UpdateAsync(key, function()
return cache[player]
end)
end)
if not ok then
warn("Save failed for", key, err)
end
saving[player] = nil
end
Players.PlayerAdded:Connect(function(player)
local ok, data = pcall(function()
return store:GetAsync("Player_" .. player.UserId)
end)
cache[player] = (ok and data) or { Coins = 0 }
end)
Players.PlayerRemoving:Connect(function(player)
save(player)
cache[player] = nil
end)
game:BindToClose(function()
if RunService:IsStudio() then
return
end
for _, player in Players:GetPlayers() do
task.spawn(save, player)
end
task.wait(3)
end)
What each part does:
cacheholds each player’s data for the session. Gameplay scripts changecache[player].Coinsinstead of writing to the data store.savingis the guard. If a save for that player is already running, a second call returns right away instead of queuing another request for the same key.UpdateAsyncreads the latest stored value before it writes. Roblox recommends it overSetAsyncwhen more than one server might write the same key.pcallcatches failures, including dropped requests, so one bad save doesn’t stop the script.BindToClosesaves anyone still in the server when it shuts down. The earlyreturnin Studio follows Roblox’s ownBindToClosesample, which skips saving in Studio to avoid writing test data to production and stalling the end of a test session. SincePlayerRemovingalready saves, this also stops the double save that often triggers the warning when you press Stop.task.wait(3)gives the spawned saves a moment to finish. Roblox’s official sample instead counts running save threads and waits until all are done, which is more reliable if you have many players.
3. Auto-save on a timer, spread out
Periodic saves protect players if a server crashes, but they shouldn’t all fire at once. Roblox’s player data sample uses a 180-second interval, and the best practices page suggests spreading recurring requests with random offsets and jitter. A simple version you could add to the script above:
task.spawn(function()
while true do
task.wait(180)
for _, player in Players:GetPlayers() do
task.spawn(save, player)
task.wait(math.random() * 2)
end
end
end)
The short random wait between players means a full server spreads its saves over several seconds instead of sending them all in the same frame.
4. Check the budget before optional requests
For requests that can wait, such as leaderboard updates, check the remaining budget first with DataStoreService:GetRequestBudgetForRequestType():
local budget = DataStoreService:GetRequestBudgetForRequestType(Enum.DataStoreRequestType.OrderedWrite)
if budget > 0 then
-- safe to update the leaderboard now
end
This returns a number for the request type you pass in. If it’s 0, skip the optional write and try again on the next cycle. Keep player saves out of this check; those should always run.
5. Update leaderboards less often
Because ordered data store writes have the smallest budget, update global leaderboards on a slow timer (for example, every few minutes) rather than every time a score changes. If you show live scores in-game, use leaderstats for the current server and write to the ordered data store only occasionally.
If it still doesn’t work
- Search your game for every data store call. Use Find All (Ctrl+Shift+F) for
SetAsync,UpdateAsync,IncrementAsync, andGetAsync. Free models and plugins sometimes add their own data store scripts. - Look at the key in the warning. The key name at the end of the message tells you which data store or player is being hammered.
- Don’t retry in a tight loop. For retryable errors, Roblox’s limits page recommends trying again with exponential backoff. Retrying instantly just adds more requests to a full queue.
- Consider a tested module. Developers on the DevForum often suggest community data modules such as ProfileService because they handle caching, auto-saving, and session locking for you. These aren’t made by Roblox, so read their documentation before switching.
If you sell items with developer products, saving at purchase time is one of the checkpoints Roblox calls out. Our guide to game passes vs developer products explains when each type of purchase is used.
Related guides
- Fix DataStore Error 104 “Cannot Store” in Roblox Studio
- Roblox DataStore Not Working in Studio? How to Fix Error 403
- Fix “X Is Not a Valid Member of Y” Errors in Roblox Studio
- Fix “Attempt to Index Nil With” Errors in Roblox Studio
Sources
- Error codes and limits – Roblox Creator Hub
- Data store best practices – Roblox Creator Hub
- DataStoreService – Roblox Engine API Reference
- DataStoreRequestType – Roblox Engine API Reference
- DataModel (BindToClose) – Roblox Engine API Reference
- DataStore request was added to the queue – How would I fix this issue? – Roblox DevForum
- How can I fix the “DataStore request was added to queue” warning? – Roblox DevForum
Frequently asked questions
What does "DataStore request was added to queue" mean in Roblox?
Your server sent data store requests faster than its per-minute budget allows, or hit a per-key limit, so Roblox put the request in a queue instead of running it right away. The request still runs later unless the queue fills up.
Can I just ignore the DataStore queue warning?
Not safely. Each queue holds 30 requests. When it is full, new requests are dropped with errors 301 to 306, which can mean a save never happens. Treat the warning as a sign that something is sending too many requests.
How many DataStore requests can a Roblox server make?
For standard data stores, reads, writes, and removes are each limited to 60 + numPlayers × 40 requests per minute per server. List requests get 5 + numPlayers × 2. Ordered data store writes are lower, at 30 + numPlayers × 5.
Why do I only see the warning in Studio?
Roblox says Studio Run mode uses its own static request limits, which may be lower than live server limits. Saving the same player in both PlayerRemoving and BindToClose when you stop a test also creates a burst on one key. Roblox recommends Team Create for rate limit testing.