So I am trying to implement a global highscore for my game in google apps engine java. The information I want to retrieve is twofold:
Which position did the user place?
How many percent of all records did he beat?
The second question is solved if I solve the first one, and find a way to count the total number of rows in the database. But I know how to do neither. An ineffective solution is easy to implement, but I would prefer something that could handle a big table without slowing down.
Cheers,