Should I use 2 different data stores for leaderboard GUI (one normal and one ordered)

Hello developers :slightly_smiling_face:,
I am trying to make a leaderboard GUI of points. But should I only use an OrderedDataStore (to sort, save, and load)? Or should I use two datastores, one normal (to save and load), and one ordered (to sort)

2 Likes

If you have to sort them, use one OrderedDataStore. Two datastores will bring you closer to your Datastore request limit (~6 per minute)

1 Like

Thanks for answering, also, do you know if I should wrap the ordered datastore with a pcall()?
I noticed people wrapped only the normal datastore, and not the ordered one.

1 Like

I would just in case. I think it is still an asynchronous function so that security measure would be there if it were to error for some reason.

1 Like