Anything about the memory size limit that’s in bold still being wrong? This issue still seems to be ongoing and values still seem to be capped it seems as I am getting “The provided value is too long” for just over 1kb in a sorted map which makes this incredibly difficult to work with because 1kb is nothing.
Here’s an image, as you can see the error occurs when the length of the entire data is just over 1kb (1024). This is affecting a lot of people that use my module as the documentation is incorrect when it makes this claim:
I know that the entire memory isn’t over 65kb as well. There’s maybe 2kb in there at max.
Here’s also confirmation. I made a new game with 0 memory usage. And I made a test script and confirmed these suspicions:
It’s fine on the first one, which is (just) under 1kb. But it errors on the second one which is over 1kb. And the total memory limit with 1 player is 65kb, which this is definitely not hitting.
And before you say it’s because I’m in studio, it’s not:
Simple test code, literally just a string of characters
local MemoryService = game:GetService("MemoryStoreService")
print("Memory limit size test:")
local test = ""
for i = 1, 1020 do
test = test .. "1"
end
print("Length of data being added: " .. tostring(#test))
local map = MemoryService:GetSortedMap("Map")
map:RemoveAsync("Test")
map:RemoveAsync("Test1")
map:SetAsync("Test", test, 86400)
test = ""
for i = 1, 1100 do
test = test .. "1"
end
print("Length of data being added: " .. tostring(#test))
map:SetAsync("Test1", test, 86400)
Please either fix the memory size limit on sorted maps or document it correctly.