Hi All, I have a Quiz model, which is related to the User model by a ForeignKey. I want to get a queryset of users that have a certain score.
I want to avoid: User.objects.filter(id__in=[u.id for u in Quiz.objects.filter(score__gt=90)]) As there are about 1 million users, this is deadly slow. What is the optimal way of doing this? Thanks, oMat -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

