#How to reset leaderboard with more than 100k user and Save their progress ?

1 messages · Page 1 of 1 (latest)

hard lynx
#

What I want to do is

  1. Everyday I need to save top 100 leaderboard data (It has custom data per player too) I am planning to save it in GameData is it a good idea ?
  2. I need to save those 100k users rank and score, I am planing to save that info in PlayerData is it a good idea ?
  3. the above too points I need to execute in a single function what is the best way to do ? should I loop through each player in leaderboard ? but it will take a lot of time ?any other approaches ?

Also After 7 days I need to delete point 1 and 2

If there are any other approch to do same do let me know

marsh breach
#

I believe the leaderboards can have ranks.so you could make the top 100 player be in the Gold rank or whatever. You can then get scores by tier.
https://docs.unity.com/ugs/en-us/manual/leaderboards/manual/tutorials/unity-sdk/get-score-by-tier

I would have each player save their score to their own cloud code player data. If you have a game server then the server could do this as well.

You should be able to schedule a Cloud Code Trigger to delete the Cloud Save data. You can set the Leaderboards to reset weekly too.

hard lynx
marsh breach
#

The leaderboard entry returned from Get Score By Tier also contains the player rank.

It's also possible to set up a trigger to save to cloud save whenever a score gets added to the leaderboard.

hard lynx
#

"The leaderboard entry returned from Get Score By Tier also contains the player rank. "
this is for top 100 user

What I want is for other user , I need to show their ranks
If we do this then every time a score changes trigger will be send to all user , which i believe would be more expensive than doing it one's before reseting the leaderboard ???

marsh breach
#

Sounds like you want to group players into Buckets so you dont have to grab all 10k players

hard lynx
#

this is my requirement

An event runs every day and has a leaderboard.
When the event ends:

  • Show the Top 100 players.
  • Show the rank of the player.
  • After that, reset the event and leaderboard to reuse for next day

The above two pieces of information should be visible for 7 days.

marsh breach