There currently is no way in Django to pre-fetch one-to-many and/or
many-to-many relationships, right?

There's select_related, which will pre-fetch FK or one-to-one, which
is great, but not sufficient.

Suppose I am fetching a list of Blog posts and I want to pre-fetch the
Comments for each of these posts? There's no way to do that in
Django.

I was looking through the tickets at code.djangoproject.com and I
didn't see anything about this.

Does anyone know if this feature is planned for sometime down the
road? Anyone have a work-around or a patch or anything. This is
supremely irritating.

Miriam

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to