Luau Scripting

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.

Fix "DataStore Request Was Added to Queue" in Roblox Studio
On this page
  1. What the DataStore queue warning means
  2. Roblox DataStore request limits
  3. Common causes of the warning
  4. How to fix it
  5. If it still doesn’t work
  6. Related guides
  7. Sources

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:

CodeMessage
301GetAsync request dropped. Request was throttled but queue was full.
302SetAsync request dropped. Request was throttled but queue was full.
303IncrementAsync request dropped. Request was throttled but queue was full.
304UpdateAsync request dropped. Request was throttled but queue was full.
305GetSorted request dropped. Request was throttled but queue was full.
306RemoveAsync 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 typeMethodsRequests per minute
Standard readGetAsync, GetVersionAsync, GetVersionAtTimeAsync, UpdateAsync60 + numPlayers × 40
Standard writeSetAsync, IncrementAsync, UpdateAsync60 + numPlayers × 40
Standard listListDataStoresAsync, ListKeysAsync, ListVersionsAsync5 + numPlayers × 2
Standard removeRemoveAsync60 + numPlayers × 40
Ordered readGetAsync, BatchGetAsync, UpdateAsync60 + numPlayers × 40
Ordered writeSetAsync, IncrementAsync, UpdateAsync30 + numPlayers × 5
Ordered listGetSortedAsync5 + 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:

  1. Saving on every change. Calling SetAsync each time a coin is collected or a stat ticks up burns through the write budget within seconds in a busy server.
  2. Saving the same player twice when they leave. A PlayerRemoving handler and a BindToClose handler 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.
  3. 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.
  4. A tight auto-save loop. A while true do loop that saves every few seconds, or one that saves all players at the exact same moment.
  5. 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:

  • cache holds each player’s data for the session. Gameplay scripts change cache[player].Coins instead of writing to the data store.
  • saving is 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.
  • UpdateAsync reads the latest stored value before it writes. Roblox recommends it over SetAsync when more than one server might write the same key.
  • pcall catches failures, including dropped requests, so one bad save doesn’t stop the script.
  • BindToClose saves anyone still in the server when it shuts down. The early return in Studio follows Roblox’s own BindToClose sample, which skips saving in Studio to avoid writing test data to production and stalling the end of a test session. Since PlayerRemoving already 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, and GetAsync. 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.

Sources

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.

Related guides