Cursor or offset pagination for my list endpoint: which one?
Summary As of November 2026, use a cursor to resume deep traversal from the last returned row; use offset to skip a known number of rows. Both need deterministic ordering. PostgreSQL warns that skipped offset rows still require computation. Start by defining a unique ORDER BY.
Not for TanStack Query useInfiniteQuery client state.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread list-endpoint-pagination-cursor-or-offset-stable-results-and-deep-pages and help me try it