DataStore API Ease of Data Access

Hello, DevForum!

I was recently hired to fund an obby game, and to improve player engagement, I thought it would be a good idea to create an application that would find the most difficult stages by analyzing which stages players get stuck on the most (by DataStore). For example, if I notice that the last stage saved by an overwhelmingly large portion of players is stage 42, then that might mean stage 42 is relatively too difficult, and the team can look into it.

Below is a sample of what the data should look like. Each entry’s key represents the stage and its value represents the number of players who last left on that stage. For example, out of the data presented here, 6 players left on stage 21.

Also note that since this is technically not my project, I do not want to go into the game and create/mess with their DataStores. I simply want to create a third-party application that conducts recon analysis.

However, the issue I’m facing is that according to the documentation, the List Entries endpoint does not contain the data associated with each individual key; it just shows which keys have been saved to the DataStore. When I was coming up with this idea, I assumed that individual data could be listed, but it seems like that’s not the case. My guess is that data is not listed for security purposes. Anyway, this means that the only way for me to get each individual data is to make a separate endpoint request for each entry, which is a lot of requests and doesn’t seem ideal at all.
image

Is there another way I can more effectively and efficiently retrieve the necessary data to achieve my goal? Again, I don’t want to mess with the developer’s code or create new DataStores. It’s not my game, it’s just my job to fund it.

Any help would be appreciated! Thank you!

1 Like

Use ordered datastores instead. The output won’t be overly tidy, and you’ll need to do a little bit of processinga fter the fact to sort it into how you have it presented, but it’ll allow you to access a lot more keys + values at once

1 Like

Yeah, that seems to be the only good solution. I told the developer to just migrate the current DataStore to an OrderedDataStore. Luckily he complied!

Thanks for your help! :smile:

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