Переглянути джерело

Fixed #14131 -- Added note to docs about Pagination and large Querysets

Daniel Jilg 9 роки тому
батько
коміт
55c843f2ef
2 змінених файлів з 6 додано та 0 видалено
  1. 1 0
      AUTHORS
  2. 5 0
      docs/topics/pagination.txt

+ 1 - 0
AUTHORS

@@ -174,6 +174,7 @@ answer newbie questions, and generally made Django that much better:
     Daniele Procida <daniele@vurt.org>
     Daniel Greenfeld
     dAniel hAhler
+    Daniel Jilg <daniel@breakthesystem.org>
     Daniel Lindsley <daniel@toastdriven.com>
     Daniel Poelzleithner <http://poelzi.org/>
     Daniel Pyrathon <pirosb3@gmail.com>

+ 5 - 0
docs/topics/pagination.txt

@@ -146,6 +146,11 @@ Required arguments
     clause or with a default :attr:`~django.db.models.Options.ordering` on the
     model.
 
+    .. note::
+
+        If you are using a ``QuerySet`` with a very large number of items,
+        requesting high page numbers might be slow on some database backends.
+
 ``per_page``
     The maximum number of items to include on a page, not including orphans
     (see the ``orphans`` optional argument below).