medium10 pts · first answer countsapi-designsqlperformance
Offset or cursor pagination
An activity feed with millions of rows uses LIMIT 20 OFFSET 200000. Pages get slow and users sometimes see duplicate items when new rows are added. What is the better approach?