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 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 5 pages be loaded or all of the objects returned > by .all be loaded? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---