Skip to content

Databases · Queries · Operations

Databases, queries and the people who run them.

In-depth articles on PostgreSQL, MySQL, SQL Server, Oracle and modern data engineering — written for developers, analysts and database administrators.

Read the archive

latest

New in the archive

All articles
SQL Server

Key Lookups and the Tipping Point

A nonclustered index that helps at a hundred rows can hurt at a hundred thousand. The reason is what happens after the index finds each row.

· 3 min

PostgreSQL

Partial Indexes: What They Let You Avoid Indexing

A partial index is valuable because of the rows it leaves out. The useful question is not whether it is faster, but what it stops the database from maintaining.

· 4 min

PostgreSQL

Reading a Plan Tree: Start at the Leaves

A plan is a tree printed upside down. Reading it in execution order instead of top to bottom turns a wall of text into a diagnosis.

· 4 min

SQL Fundamentals

Why Your Benchmark Measured the Cache

A query run five times in a row reports the speed of memory, not of the system. Which layer answered the request is the first thing to establish.

· 3 min

Featured · sql-fundamentals

N+1 Queries: What the ORM Is Actually Doing

One query for the list, then one more for every item in it. The cost is per statement, which is why the profiler shows a fast database and a slow request.

2026-08-30 · 3 min

start here

Two articles to begin with

  1. Reading a Plan Tree: Start at the Leaves
  2. Why an Index Is Not Used: the Estimate, Not the Index

Start typing to search the archive.