What Developers Need to Know About Indexes
summary
Explains relational database indexes: what they are, how they work, and when to use them to keep SQL queries performant at scale. Focuses on index principles and practical examples in PostgreSQL (most concepts apply to other RDBMS), aimed at developers who should decide which columns to index rather than leaving it solely to DBAs.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 10:57Why developers need indexes
- 13:45Index performance basics
- 25:49How indexes work internally
- 26:09Understanding execution plans
- 30:42Indexing WHERE clauses
- 42:14Prepared statements and indexes
- 45:01Indexing JOIN operations
- 52:11Indexing ORDER BY queries
- 1:03:02Indexing GROUP BY queries
- 1:11:44Optimizing pagination
- 1:28:39Index impacts on writes
- 1:38:13Indexing best practices
- 1:57:13Finding unused indexes
- 2:02:15Covering indexes
- 2:04:00Indexing JSON and text
- 2:06:28Indexes with partitioning
- 2:07:53Database size estimates
- 2:08:35Optimizing UPDATEs
- 2:09:39Indexing string fields
- 2:10:57Q&A
