Re: perfomance question

2009-05-21 Thread James Bennett
On Thu, May 21, 2009 at 5:10 AM, Chris Withers wrote: > What was your solution in the end? I'm always interested this kind of > batching of results, and I'm very new to Django... The Django tutorial mentions this -- a Django QuerySet is "lazy", which means that it

Re: perfomance question

2009-05-21 Thread Chris Withers
Rodrigo Aliste P. wrote: > OH! It does it alone! Another awesome thing to my awesomeness list of > django. What was your solution in the end? I'm always interested this kind of batching of results, and I'm very new to Django... Chris -- Simplistix - Content Management, Zope & Python

Re: perfomance question

2009-05-20 Thread Rodrigo Aliste P.
OH! It does it alone! Another awesome thing to my awesomeness list of django. 2009/5/20 Rodrigo > Hi users and devs > > In the next example for pagination: > >contact_list = Contacts.objects.all() >paginator = Paginator(contact_list, 25) # Show 25 contacts per > page

perfomance question

2009-05-20 Thread Rodrigo
Hi users and devs In the next example for pagination: contact_list = Contacts.objects.all() paginator = Paginator(contact_list, 25) # Show 25 contacts per page Consider that Contacts.objects.all() returns a list with 1.000.000 objects, and I want to paginate to 25 objects per page.