Leaderboard ranking with Firebase
问题 I have project that I need to display a leaderboard of the top 20, and if the user not in the leaderboard they will appear in the 21st place with their current ranking. Is there efficient way to this? I am using Cloud Firestore as a database. I believe it was mistake to choose it instead of MongoDB but I am in the middle of the project so I must do it with Cloud Firestore. The app will be use by 30K users. Is there any way to do it without getting all the 30k users? this.authProvider.afs