API Pagination
PageNumberPagination and LimitOffsetPagination slice a queryset with OFFSET, whose cost grows with page depth; CursorPagination keys on an indexed, immutable ordering field to give stable O(1) pages that tolerate concurrent inserts. The paginator wraps results with next/previous links so clients never construct page URLs themselves.
This Concept is waiting for its first lesson!
PageNumberPagination and LimitOffsetPagination slice a queryset with OFFSET, whose cost grows with page depth; CursorPagination keys on an indexed, immutable ordering field to give stable O(1) pages that tolerate concurrent inserts. The paginator wraps results with next/previous links so clients never construct page URLs themselves.
Are you a teacher? Sign in to start contributing.
Sign In