I am curious about the best way to join a single table.

I currently want to select some users:

        users = User.objects.order_by('username')[:30]

And also at the same time, select their "profile" information from the
module 'user_profile'.

If I use select_related, I would get a massive data set, and looping
through each user to get their information seems very inefficient.

Is there a good way to do this?
thanks a lot,

-Dougal


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to