medium10 pts · first answer countsquery-tuningindexing
Slow deep pagination
An API pages through 50 million events with ORDER BY id LIMIT 50 OFFSET n. Page 1 is fast but page 100000 is slow. What is the best fix?
Discussion 0
Join free to post in the discussion.
Related questions
- When a B-tree index helpsDatabase Administrator
- Finding slow MySQL queriesDatabase Administrator
- Index on a yes/no columnDatabase Administrator
- How InnoDB stores table rowsDatabase Administrator
- What an InnoDB secondary index points toDatabase Administrator
- LIKE with a leading %Database Administrator
- What a hash index supportsDatabase Administrator
- Cost of extra indexes on insertsDatabase Administrator