#8408: Add a new meta option: don't do count(*) in admin
-------------------------------+-------------------------------------------
     Reporter:  LI Daobing     |                    Owner:  Thomas Chaumeny
         Type:  New feature    |                   Status:  new
    Component:  contrib.admin  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  1              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+-------------------------------------------

Comment (by michi88):

 Ok, it only works when the number of total rows in the database is >
 `list_per_page`. When they are less I see multiple calls to
 `len(self.object_list)`. Which I don't mind as for those views performance
 is a non-issue.

 Nonetheless, this is all highly unreliable as it relies on the queryset
 cache also being used for rendering the actual list of objects.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/8408#comment:54>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.e997f8c4964da5ca5c04a936b474df81%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to