You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you’re using a QuerySet with a very large number of items, requesting high page numbers might be slow on some databases, because the resulting LIMIT/OFFSET query needs to count the number of OFFSET records which takes longer as the page number gets higher.
michaelhiiva
changed the title
Slow Queries for Pagination with Using Limit / Offset
Slow Queries for Pagination with Using Limit / Offset in Large Sets
Apr 20, 2021
Summary of the Bug
@duckpunch
#180 (comment)
Specifically the issue with performing large queries on large sets.
https://docs.djangoproject.com/en/3.2/ref/paginator/#django.core.paginator.Paginator.object_list
Notes
The text was updated successfully, but these errors were encountered: