xGOA7x
(Cairo)
December 30, 2022, 9:56pm
#1
Hello, This is just a Simple Question I have:
Would Saving this much stuff with DataStoreService
cause it to:
Error?
Go into Queue?
Or be more likely to fail?
local Template = {
Level = 1,
EXP = 0,
Cash = 0,
Banned = {false, "N/A"},
Items = {
MobStuff = {Item, Item2, Item3},
Tools = {Tool1, Tool2},
Gamepass = {G1, G2, G3, G4},
Weapons = {AK47, MP5, Kriss_Vector, Glock_17},
}
}
Would This happen?
Well, from me personally? No. But there might be some other people that think otherwise.
By the way, you can’t save instances with DataStoreService.
xGOA7x
(Cairo)
December 30, 2022, 10:14pm
#3
Data of Instances, I was too lazy to create more tables
Assuming your handling you data stores correctly I doubt it will fail or error.
xGOA7x
(Cairo)
December 30, 2022, 10:16pm
#5
I currently have a system where it rarely fails, but I’m not sure if this will cause it to go into a queue or error because of that much data.
This has to do with how many times you try to write to a key. Just limit the number of times data is written per key and you will be fine.
The limit is 4MB per key, so with this much data you won’t even need to dream about reaching the limit.
1 Like
xGOA7x
(Cairo)
December 30, 2022, 10:21pm
#7
Idk how much that is in this case, but shouldn’t this be around 1KB (or within)?
xGOA7x:
local Template = {
Level = 1,
EXP = 0,
Cash = 0,
Banned = {false, "N/A"},
Items = {
MobStuff = {Item, Item2, Item3},
Tools = {Tool1, Tool2},
Gamepass = {G1, G2, G3, G4},
Weapons = {AK47, MP5, Kriss_Vector, Glock_17},
}
}
4MB is equal to about 4 million characters. If you want to check roughly the amount of data something uses you should JSON encode it then check the length of the string.
1 Like
xGOA7x
(Cairo)
December 30, 2022, 10:23pm
#9
O_O
That’s good to know, thanks!
system
(system)
Closed
January 13, 2023, 10:24pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.