#3275: select_related() additions (depth=N, fields=[])
----------------------------------------------+-----------------------------
 Reporter:  David Cramer <[EMAIL PROTECTED]>  |       Owner:  adrian          
     Type:  enhancement                       |      Status:  new             
 Priority:  normal                            |   Milestone:                  
Component:  Database wrapper                  |     Version:  SVN             
 Severity:  normal                            |    Keywords:  select_related()
----------------------------------------------+-----------------------------
 While I was happy with django's db api, to an extent, it did not have
 everything needed for the basics. So here is a quick solution to some
 related fields using select_related().
 
 It adds to parameters to select_related(), depth, and fields.
 
 depth: A numerical field and represents the recursion depth for keys, by
 default, django recurses infinitely on any keys that are not blank=True
 fields: A list of field names in the base model to join with. It does not
 support children, ie relatedfield__fieldname, but I'd like to add this
 later, this will also set depth to 1.
 
 I've done several unit tests (several being all of curse-gaming.com) and
 we're pushing the changes live on the site now. It's helping performance
 out quite a bit in areas where it was too difficult to manually join with
 just one other table, or areas where we just wanted top level results.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3275>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to