Roblox order datastore limits

Hello developers! I would like to touch on the topic of OrderDataStore. I currently have my own OrderDataStore system, based on the regular DataStore, which uses the regular roblox DataStore limits rather than the OrderDataStore for example:

My OrderDataStore limits:

list size - 5,000 players
get - 60 + (players * 10) per minutes

roblox’s OrderDataStore limits:

list size - 100 players
get - 5 + (players * 2) pet minutes

Why does roblox have such small limits?

Well the benefit of using OrderedDataStores instead of regular DataStores is the abilty to use :GetSortedAsync(), which is a convenient way to retrieve data that’s already sorted in an ascending manner. Essentially there’s no need to use them if you don’t care about the numerical order of the data retrieved, or you want to use a different sorting method

That’s a question only Roblox themselves or an official representative can accurately answer, but from what I guess the reason as to why OrderedDataStores have a smaller budget is because the server will need to do extra processing to sort the data before sending it to you, which isn’t needed to be done when using regular DataStores

1 Like

My datastore too have sorting :slight_smile:

1 Like

In that case if you have a working method to sort the data yourself, you can use a normal DataStore instead of an OrderedDataStore and benefit from the increased budget normal DataStores have :slightly_smiling_face::+1:

1 Like

Sorting can potentally get really expensive when datastores scale up.

It takes longer for an OrderedDataStore to figure out exactly where to put your data in an order when you are trying to get it, compared to DataStores that doesn’t care about all that.

The intention of an OrderedDataStore is also to set up systems like global leaderboards - systems that you don’t have to run so frequently.

That’s why the limits are so low - it’s to prevent developers from abusing OrderedDataStores to do things they should not be doing.

Also, while you can absolutely implement your own sorted datastores, the onus of implementing the sorting algorithm is on you - and it’s something that gets complicated and messy when your game and community size scales up.

1 Like