Pagination Designer

Design correct, scalable pagination (plus the filtering and sorting that ride with it) for a list endpoint — pick cursor (keyset) vs offset and justify it, define an opaque cursor with a unique tiebreaker so no row is skipped or repeated, return a consistent envelope, bound page size, and name the indexes the sort actually needs. Use when adding a list endpoint, when OFFSET pagination crawls on a large table, or when clients see duplicate or missing rows while paging.

imtiazrayhan Updated

File contents

imtiazrayhan/agentscamp-library/tree/main/skills/pagination-designer commit cd84d6db83

Frequently asked questions

npx skillmds@latest add imtiazrayhan/pagination-designer