Answer the question
In order to leave comments, you need to log in
How to find which QuerySet is in the list c QuerySet?
Of course, the question may be asked incorrectly, but now I will explain everything.
There is a DB, with a large number of records (in theory> 100,000).
It is necessary to rank users by the highest value in the how_start column.
I was able to compile a general rating, but I could not find a specific user in this large database.
This is how I sorted the most frequently played users:
most_games_player = profiles.objects.order_by('-how_start')
player = list(most_games_player).index(most_games_player.get(user_id=user_id))
Answer the question
In order to leave comments, you need to log in
Calculate how many users have a higher rating than the one you are looking for
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question