Dec 1, 2026Dec 1, 2026 · 15 min readOffset Pagination Is Lying to YouOn 10M Postgres rows, OFFSET took 1 second to fetch the last page and skipped half a batch job's rows. Keyset pagination fixed both. Here's how.15 min read