#8408: add a new meta option: don't do count(*) in admin
-------------------------------------------+--------------------------------
          Reporter:  lidaobing             |         Owner:  nobody  
            Status:  new                   |     Milestone:  post-1.0
         Component:  django.contrib.admin  |       Version:  0.96    
        Resolution:                        |      Keywords:          
             Stage:  Accepted              |     Has_patch:  0       
        Needs_docs:  0                     |   Needs_tests:  0       
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by soroosh):

 This can be done without losing any functionality by setting a limit for
 count like this:
 SELECT count(*) from (select id from HUGE_TABLE LIMIT 10000) as b;
 Then if the raws count is more than for example 10000, SQL server stops
 sequential scanning through the table and paginatior can list pages around
 current page but not the last page. On my system postgreql takes 60
 seconds to return count of a table with 11,000,000 raws and this is
 suboptimal to wait a minute for each admin page to load.

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