Ranking with millions of entries

后端 未结 6 1014
有刺的猬
有刺的猬 2020-12-12 14:31

I\'m working on a server for an online game which should be able to handle millions of players. Now the game needs leaderboards and wants to be able to show a players curren

6条回答
  •  难免孤独
    2020-12-12 15:05

    You can redundantly store the rank of each player in the player table so that you don't have to do any join operations. Every time, when the leaderboards are recalculated, the player tables should be updated, too.

提交回复
热议问题