计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
django-pagination-performance【效率与协作】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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
Confirm the list contract.
Measure the current query.
QuerySet.explain() for deep pages.Choose the pagination style.
Paginator for moderate result sets and arbitrary page access.CursorPagination for API next/previous navigation with stable ordering.Make ordering deterministic.
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.