We have a leaderboard as part of our game that we are developing. Currently the ‘rank’ is based on your position on the leaderboard which is determined by a sort function on a specific column which relates to in-game spend.
As we want to add more functionality to the table (such as searching for your web3 wallet address) naturally the ‘rank’ which is determined by your position in the table will change.
So I’m trying to brainstorm some persistent rank ideas without needing to repeat over the whole database and change a ‘rank’ field in the DB for every person.
Thanks @Apple - I really could only think of option 1 as a solution, I just felt it was a little too resource intensive to do it each time there is a transaction.
However, your thought process here ‘regular basis’ changes that. I think instead of doing it every transaction, i’ll just create a scheduler to do it every 1 hour, or even broader than that say every 12 hours / 24 hours.
Thank you - I appreciate your input here - I think it’s let me to the right decision.