OFFSET 1000000: Why Your Pagination Falls Over at Page 10,000
Page 2 of the order list loads instantly. Page 5,000 takes 8 seconds. Same query, same index — OFFSET makes Postgres scan and discard everything before the page you asked for. Cursor-based pagination fixes it for good.