← All topics

Database systems

0 of 17 steps read

Read first
Next
Evolution

Foundations

1
CMU 15-445/645: Intro to Database Systems

Storage, indexes, query execution and optimization, concurrency control and recovery. In English.

CMU· 2025Website
2
Architecture of a Database System

How real databases handle processes, memory and parallelism, which textbooks skip.

UC Berkeley· 2007
Further reading

Storage engines

3
Evolution of Development Priorities in Key-value Stores Serving Large-scale Applications: The RocksDB Experience

RocksDB's priorities shifted from write amplification to space to CPU as its hardware and workloads changed.

Meta· 2021
4
The Part of PostgreSQL We Hate the Most

Postgres MVCC copies the whole row on each update, causing bloat and vacuum pain.

CMU· 2023

Query optimization

5
An Overview of Query Optimization in Relational Systems

SQL leaves the plan to the system, and this survey explains how optimizers search and cost plans, starting from System R.

Microsoft· 1998
6
How Good Are Query Optimizers, Really?

Cardinality estimates are often far off and matter more than the cost model, as the Join Order Benchmark shows.

TU Munich· 2015

Transactions

7
A Critique of ANSI SQL Isolation Levels

The ANSI isolation levels are defined too vaguely, and the paper adds snapshot isolation, which still allows write skew.

Microsoft· 1995
8
Serializable Isolation for Snapshot Databases

Snapshot isolation still allows write skew, so SSI detects dangerous patterns at runtime and aborts a transaction, as PostgreSQL does.

University of Sydney· 2008

Evolution

9
C-Store: A Column-oriented DBMS

Analytic queries read a few columns of many rows, so C-Store stores data by column and reads only what a query needs.

MIT· 2005
10
MonetDB/X100: Hyper-Pipelining Query Execution

Row-at-a-time execution wastes CPU on interpretation, so X100's vectorized operators process a batch of values per call.

2005
11
DuckDB: an Embeddable Analytical Database

Analysts needed fast analytics inside their own process, so DuckDB is embedded like SQLite but columnar and vectorized.

2019
12
What Goes Around Comes Around... And Around...

Many data models tried to replace SQL, and this retrospective shows how SQL and the relational model absorbed their best ideas.

MIT· 2024

Operations

13
The State of Online Schema Migrations in MySQL

Altering a busy MySQL table can block writes, so online migration tools copy it to a shadow table in the background and swap it in.

PlanetScale· 2024
14
PGKeeper: Building the bouncer we needed for Postgres

Postgres uses one process per connection, so Figma built a pooler that sheds load.

Figma· 2026
15
MySQL High Availability at GitHub

VIP and DNS based failover was slow and fragile, so GitHub uses orchestrator to promote a replica and Consul with GLB to route clients to it.

GitHub· 2018
16
Upgrading GitHub.com to MySQL 8.0

GitHub upgraded its whole MySQL fleet in stages, replicas first, while replicating back to the old version so it could roll back.

GitHub· 2023
17
Herding elephants: Lessons learned from sharding Postgres at Notion

Notion's single Postgres was nearing its limits, so it split the data into logical shards by workspace and migrated with double writes.

Notion· 2021