Knowledge · database

Keyset (cursor) pagination

Pagination that uses the sort key of the last-seen item as a coordinate to fetch the next batch. It eliminates offset's performance decay and the duplicates/gaps caused by inserts and deletes, providing stable bidirectional paging for infinite scroll

Date
2026-07-22
Reading time
6 min
Confidence
Inferred

Document graph

  • TIL
  • KNOWLEDGE