Hello,
My game has a global marketplace where there are mutliple filters (latest, lowest price, lowest price per unit)
How do I go about saving and loading data for this purpose?
Hello,
My game has a global marketplace where there are mutliple filters (latest, lowest price, lowest price per unit)
How do I go about saving and loading data for this purpose?
Can you provide more details about your goal here? For instance, what kind of data are you storing, and what is featured in the marketplace? Having more context will help us get on the same page before coming up with a solution.
It’s a crypto marketplace and I need to store information like how much they’re selling, for how much, etc
I was thinking that I could make a datastore with the information in it and the key as (for example) x
Then I can create multiple ordereddatastores with the value as the funnel (time uploaded for example)
Then the key as x
The only problem would be rate limits.
Yes, rate limits are one of the things that you need to worry about when using APIs. While I’m not very good at backend programming, I think OrderedDataStores is the best solution for sorting incrementally or decrementally. There is still a thing that you should take into account when implementing this sorting system:
Starting on 2026, Roblox is going to have new data store limits. You should check it out here and change how your server fetches data to avert potential errors. In any case, I wish you the best luck in making the system!
There will be user created Crypto Currencies, so there will be a lot of ordereddatastores unless I use just 1 ordereddatastore to store all the sales for each filter, so I was thinking I should use a normal datastore instead & just use 1 key for each crypto that stores all the listings? (Shouldn’t 4MB be plenty of space?)
I mean 4MB will let me store at least ~50-100k listings (if not more) if I encode all of the data into JSON?
But would ordering the data 4 different ways (4 filters) take too long?