hard20 pts · first answer countsindexingpostgresqlperformance
Index for the few pending rows
A jobs table has 50 million rows, 99.9% with status 'done'. Workers run: SELECT * FROM jobs WHERE status = 'pending' ORDER BY created_at LIMIT 100. Which index is best?
Discussion 0
Join free to post in the discussion.
Related questions
- Slow email during signupBackend Developer
- What EXPLAIN tells youBackend Developer
- Asking for only a few fieldsBackend Developer
- Building a long string in a loopBackend Developer
- Checking if any rows existBackend Developer
- Latency versus throughputBackend Developer
- The N+1 query problemBackend Developer
- Offset or cursor paginationBackend Developer