Need help recalling a method to datastore saving

Hi, I’m writing this to request help recalling a certain lua feature that allows for data storing to be more efficient. It involves the use of hashes, strings or something like sort, I don’t quite recall but I would be able to recognise it if I see it. If you have an idea of what I’m trying to describe, please let me know!

It’s not pcalls, updateasync, getasync or getbudget.

HTTPService:JSONEncode() and HTTPService:JSONDecode()?

1 Like

Are you talking about string.char, string.byte and/or the bit32 library? You can use these to store integers in a way that takes less memory than storing the raw number. You’ll need to know the range of possible values to utilize these.

Also, @SeargentAUS , I could be wrong but I don’t think JSON conversion compresses the data. It is used to create a human-readable string from the data. You can compress the JSON string, though.

1 Like

Ah yes thank you, this is it. :pray:

I never heard of that before, but I’ll keep it in mind. I saw an application of JSON for datastore, so I think it’s feasible. Thanks for the response

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