Making something like wiki hub on Roblox and I have many tables to save in one table.
I'm aware about the limits and ways, imagine I have to save many tables with data, but how to do that?
One key would only save up to 4MB. I think that's not enough because of the amount of different data I'm going to save in each table.
Is there's a way to save this kind of information in a data store? Or it's only use to save some info for each player but not to save many things in one key?
For example, we have 2k of tables with 1k characters, it'll take 2MB, but I'm still aware if I'm right, can someone make me sure, it'll be a hard work and I don't want to lose it.
Hello, I'm SuperPuiu.
Everything here is just theoretical and I DID not try them.
You also should watch this video about datastore compression and stuff.
Now, if you have multiple values of the same you could point to the same value that's stored somewhere else.
Example:
local SomethingTable = { ["PartOne"] = { ["ColorR"] = 100, ["ColorG"] = 200, ["ColorB"] = 150, } ["PartTwo"] = { ["ColorR"] = SomethingTable["PartOne"], -- Point to the ColorR from part one ["ColorG"] = SomethingTable["PartOne"], ["ColorB"] = SomethingTable["PartOne"], } }
Now this example might not work, I'm not the best scripter using tables, but it should work, theoretical as well.
Now, it is up to you what and how you will compress them, I just gave some ideas. If I find something new, I will edit this answer.