medium10 pts · first answer countsindexingperformancepostgresql
Benefit of INCLUDE in an index
A hot query is SELECT status FROM orders WHERE customer_id = $1. You change the index to CREATE INDEX ON orders (customer_id) INCLUDE (status). What does that gain?
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