recently I started experiencing a warning that has to do with datastores, and I am extremally confused by it. it seems to only happen when 2 or more people are in the game, but it does not start until a while after the second person joins.
09:17:14.604 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:14.606 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:14.606 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:15.606 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:15.607 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:15.608 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:15.608 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:16.605 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:16.605 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:16.606 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:16.606 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:16.606 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:17.604 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:17.604 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:17.605 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:17.605 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:18.604 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:18.604 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
09:17:18.605 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -2 - Studio
09:17:18.605 DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = -1 - Studio
my game runs fine for a few minutes, and then the output becomes filled with hundreds of the same warning.
here are the scripts that control my datastore.
Game.Players.PlayerAdded:Connect(function(Plr)
DataSuccessTable = {}
local Success, ErrorMsg
local Data
repeat
Success, ErrorMsg = pcall(function()
Data = HitStore:GetAsync(Plr.UserId..".Hits")
end)
print("D1")
until Success or not Players:FindFirstChild(Plr)
if Success then
HitValue.Value = Data
table.insert(DataSuccessTable, Plr.UserId)
elseif not Success then
print("datastore broken")
warn(ErrorMsg)
Plr:Kick("there was an error getting your save data. please rejoin, if this issue persists contact an admin.")
end
end
game.Players.PlayerRemoving:Connect(function(Plr)
local Success, ErrorMsg
if table.find(DataSuccessTable, Plr.UserId) then
repeat
Success, ErrorMsg = pcall(function()
print("D2")
HitStore:UpdateAsync(Plr.UserId..".Hits", function(OldValue)
if Plr.leaderstats["Hit's"].Value then
return Plr.leaderstats["Hit's"].Value
else
return nil
end
end)
end)
until Success
if Success then
print("data saved")
elseif not Success then
print("Data not saved")
warn(ErrorMsg)
end
end
end)
as you can see, in both of these I print something. I was using this for bugtesting to see if I could see what datastore the error is coming from. D1 prints at the start of the script, and then when the warnings come neither D1 or D2 is printed. I have used 0 free models, I am the only one working on the game, and I checked all of my plugins. from what I can tell the error does not effect anything and the data still saves, however it is just annoying to have it spammed, and a little off putting as I don’t want thousands of random datastore requests in my game. does anyone know what the heck is going on? thanks in advance!