Trying to save a LOT of data!

Alr ill pair everything together!

  • Datastore2
  • Single string (“Part+22356+10416-11541+0+0+0400100200”)

Apprichiate the help guys!

1 Like

wow…

OK so, to store this amount of data you would first have to:

  • join together blocks and use reference int to make them individual again.
  • Make a map saveable to 1 long string.
  • encode that string using ATLEAST some sort of compression
  • then save it in the datastore for the corresponding map

this is the best way to do it, if you want to make it more then 1k parts then this is a MUST.

Edit: ive tried more complex ways, this is the best and shortest way ive found.

Ah yes, you’d want to use a table to store all the strings, but not as a dictionary. A regular table works. Only use JSONEncoding if you want to compress said string

Aight, for sure trying this if i ever need to get it over, tysm!

1 Like

Just use buffers
They will allow you to save more data, since most of your data is numbers.
(with about 1/3 bytes overhead)

Using compression becomes completely unnecessary, Roblox issues it’s own compression on buffers when they are used on DataStores or even when sent over the network.

Save over 2 datastores.
When saving lost of of data more storage may seem essential, and it is pretty much fine to use 2 datastores if you think you really really REALLY can’t scale the size down further. (sometimes even 3 but I wouldn’t recommend going that high)

Just please don’t over-use datastores, write a piece of code to find the best size for the data you are saving.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.