When you do the actual Paginator.page call the Paginator does nothing
more than you'd have with
Object.objects.[...].all()[lowerlimit:upperlimit].

So yes, from what I can see in the source it's like doing a normal
query with the right LIMITs applied :-)

- Horst

On Mon, Apr 7, 2008 at 3:23 PM, zak <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  If i do something like this:
>
>  p = paginator(MyTable.objects.all(), 100),
>
>  where I expect MyTable.objects.all() to return about 20,000 results,
>
>  then will involve doing the sql query like SELECT *? or is the
>  paginator as smart as objects.filter, and instead will do the queries
>  as the pages are requested?
>
>  Thanks,
>  Zak
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to