Performance of Leaderboard Subscore

Hello!

I am curious about the performance of utilizing the subscore in a leaderboard. I want to have a setup where our Legendary ranked users are always above our non-Legendary ranked players even if it’s possible that the non-Legendary player has a higher score than some Legendary players(due to Legendary players losing points, for example). Here is what I’m envisioning for my use case:

  • The score of our leaderboard is you are either 1 for Legendary ranked or 0 for non-Legendary ranked
  • The subscore is the more granular score value
  • The Legendary players would always sort above the non-Legendary and then the subscore ranks would be sorted by score

Would this be performant enough? I’m not sure if this would break the design paradigm of the leaderboard system and cause performance issues especially as the leaderboard scales.

Thanks!

Hi @chris1,

Subscore exists to allow to untie equal scores, although it doesn’t always apply. Using both score and subscore as you describe should have no performance implications, It’ll behave the same whether you use only score or both score and subscore.

Best.

1 Like