Technical interview guide
Indexing & Query Performance
Why some queries are instant and others scan the whole table — and how an index (usually a B-tree) changes that.
- Read
- 25 min
- Practice MCQs
- 25
- Interview QA
- 25
- Edition
- v3
- Editorial status
- Reviewed
Scope: SQL principles with PostgreSQL 18 examples; vendor-specific behavior must be verified.
Interview QA
Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.
Curated: · Written: · Reviewed:
