Getting the position of a key in an OrderedDataStore

It seems like a pretty useful, and obvious method that should already have been thought of being implemented with the push of ordered data stores(also i don’t think it’d take an intern more than a few hours to implement either). Practical uses for such would be displaying individual ranks without the use of external databases.

4 Likes

This would be very useful, it should come as a feature and stop developers having to max out requests searching pages

As a Roblox developer, it is currently too hard/extremely inefficient to find the position of a certain key in an OrderedDataStore. Right now, you would need to use a for loop to go through every single key top to bottom until you reach the desired key, and then use the loop’s index variable for the position.

Something like :GetPositionAsync() would be extremely useful for stuff like say a global rank display, that tells the player what rank they are without being near the top.

16 Likes

Support, however maybe to lessen DataStore requests, it would be better if we had a GetAsync function that returned the value and the position, e.g:

local Value, Position = OrderedDataStore:GetAsync(Key)
18 Likes

Many developers still need this feature; we have to resort to third party services for this. Here is an explanation of the current limitations: OrderedDataStore get ranking? - #5 by Corecii

The importance of knowing where you are on the board is incredibly important for player retention and feelings of progress.

8 Likes

As a developer, getting the rank of a key is a core feature and expected functionality of OrderedDataStore.

8 Likes

This is essential for the experience I am building in which global leaderboards are a key part of the experience. I implore Roblox adds this functionality as soon as possible.

4 Likes

Given that DataStores are getting updated and changed frequently now (and especially with the Addition of MemoryStore,) I decided it would be okay to revive this topic instead of just hearting a comment.

As a Roblox Developer, I find that this feature is very useful, and would help improve my experience a lot as it gives other players an understanding of where they stand.

We have not gotten a response related to this feature, it would be neat if an implementation like VitalWinter’s was added.

3 Likes

This is long overdue, many games outside of Roblox utilize this.
I’d like to see a response/update to this, as this is very difficult to implement currently.

3 Likes

Working on a module for this as it’d be useful to my needs as well, releasing in a couple of hours.

I’ve been working on a Datastore system for in-game analytics tracking and came across various methods as to retrieving a position or page of an entry containing data. Sorry for the revival, but if one doesn’t do it, another must.

Edit: My version can be found here

1 Like

just what i needed. thanks, also epic revive…

1 Like