Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Improve Django and Django REST Framework pagination for large querysets using bounded page sizes, stable ordering, indexed ordering, offset limits, keyset pagination, DRF CursorPagination, and count-query tradeoffs. Use when list pages, admin views, APIs, exports, or infinite scroll become slow, inconsistent, or memory-heavy as result sets grow.
.claude/skills/hashgraph-online-django-pagination-performance/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-12 | ✓→✓ | = Same ✓ | -49% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -15% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -24% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -6% | 0% |
Use this skill when a Django list view or API slows down as pages get deeper or result sets grow. Pagination is a query-design problem as much as a response-shaping problem.
QuerySet.explain() for deep pages.Paginator for moderate result sets and arbitrary page access.CursorPagination for API next/previous navigation with stable ordering.See pagination-patterns.md for Django and DRF examples.
LIMIT/OFFSET pages can be slow because the database still walks skipped rows.Measure first page, representative deep page, count query, and insertion/deletion consistency for the chosen pagination contract.
Other measured skills in the registry, with their headline benchmark lift.