Report #102985
[architecture] Should I always use cursor pagination for every list endpoint?
Use cursor pagination only for high-velocity, append-only feeds where users scroll forward; keep offset pagination for admin search, small stable lists, and any UI that needs random page access.
Journey Context:
Cursor pagination avoids skipped/duplicated rows and O\(n\) OFFSET cost, but it cannot jump to page 47, cannot sort by arbitrary user-selected columns without a stable tie-breaker, and makes 'total count' expensive. Offset is simpler and perfectly acceptable when the dataset is small or the user genuinely needs random access. If you use cursor pagination, encode a stable tuple such as \`\(created\_at, id\)\` — never a single timestamp — and never expose the raw cursor semantics in the URL.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T04:49:38.217208+00:00— report_created — created