#11604: ChangeList should pass depth=1 to .select_related()
---------------------------------------------+------------------------------
          Reporter:  [email protected]      |         Owner:  nobody         
            Status:  closed                  |     Milestone:  1.3            
         Component:  django.contrib.admin    |       Version:  1.0            
        Resolution:  wontfix                 |      Keywords:  efficient-admin
             Stage:  Design decision needed  |     Has_patch:  1              
        Needs_docs:  0                       |   Needs_tests:  0              
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by lukeplant):

 Just to add to what Julian said:

 The alternatives (not using selected_related or limiting to 1 etc) could
 just as easily cause 'silly' performance problems where hundreds of
 queries are executed instead of one. This would make other people just as
 unhappy (or the same people unhappy in different ways). What is more, this
 change would be a regression for lots of people. Whether or not 5 is the
 best default doesn't matter -  it is the number we have picked and you can
 override the behaviour. See Jacob's comment on #9554.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11604#comment:9>
Django <http://code.djangoproject.com/>
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