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?
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- Purpose of a database indexBackend Developer
- Rows returned by a LEFT JOINBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- COUNT and AVG with NULLsBackend Developer
- Filtering grouped resultsBackend Developer
- Slow email during signupBackend Developer