SWESPOT

Databases

Modelling data so it stays correct, and understanding the engine well enough to know why the query is slow.

16 articles

Indexes that actually get used

Listed inIndexingDatabaseson

Composite column order, covering indexes, and the six query shapes that make the planner ignore the index you just added.

Intermediate9 min
#databases
#performance

Use the Index, Luke

Listed inIndexingDatabaseson

A free, database-agnostic book on SQL indexing — the clearest explanation anywhere of why composite column order decides everything.

External
Markus Winand · use-the-index-luke.com
#databases
#performance

Using EXPLAIN

Listed inQuery PlansDatabaseson

The PostgreSQL manual on reading a query plan: node types, cost units, and what ANALYZE adds to the picture.

External
PostgreSQL · postgresql.org
#databases
#performance

Query Plans

Listed inQuery PlansDatabaseson

Reading EXPLAIN, spotting the sequential scan that matters, and fixing statistics rather than guessing.

Advanced9 minDraft
#performance

Indexing

Listed inIndexingDatabaseson

B-tree internals, composite index column order, covering indexes, and the cost of every write.

Intermediate9 minDraft
#performance