Re: Are paginators lazy?

2007-12-18 Thread Alex Koshelev
Paginator is lazy. It loads only needed page. It uses slice syntax( [:] ) of query set On 18 дек, 16:26, shabda <[EMAIL PROTECTED]> wrote: > I am using the paginators(django.core.paginator) as describes > athttp://www.djangoproject.com/documentation/models/pagination/. > Are

Are paginators lazy?

2007-12-18 Thread shabda
I am using the paginators(django.core.paginator) as describes at http://www.djangoproject.com/documentation/models/pagination/ . Are paginators lazy, like .filter and related method are? If I use paginator = ObjectPaginator(Article.objects.all(), 5) and then paginator.get_page(0) would the first