Would it be better to do
1 | local tab = { a,b,c } |
2 | Plr:SetAsync(Plr.Name,tab) |
3 | Or |
4 | Plr:SetAsync(Plr.Name.. "a" ,a) |
5 | Plr:SetAsync(....b) |
6 | ...c |
And by better I mean taking less space, and to what extend is one actually better than the other.
I would suggest saving multiple keys to the datastore, rather than one key with a table
/ dictionary
of all your data.
I'm saying this because, there is virtually no limit to how much you can store in a single datastore, but there is a limit to how much you can save per key. You can only save up to 64 kibibytes per key! This is equivelant to 2 ^ 16 string characters.
So, because your DataStore may grow to be too much data for one key, I just suggest having mupltiple keys.