#11287: Better performance of the Paginator list
----------------------------+-----------------------------------------------
 Reporter:  qingfeng        |       Owner:  nobody    
   Status:  new             |   Milestone:            
Component:  Core framework  |     Version:  1.0       
 Keywords:  Paginator       |       Stage:  Unreviewed
Has_patch:  1               |  
----------------------------+-----------------------------------------------
 old:
 {{{
 objects = Model1.objects.all()#-->Read all the data, poor performance
 p = Paginator(objects, 2)
 }}}

 NBPageList:
 {{{
 objs = NBPageList(Model1.objects)
 p = Paginator(objs, 5)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11287>
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