Twenty years of databases that promise to tune themselves — and the autonomous DBA that actually shipped is an agent with a master prompt and a connection string.
Lecture 1 — From Auto-Tuning to Self-Design · Lecture 2 — The Agent as DBA
OtterTune’s Gaussian processes, the Data Calculator’s design continuum, and why the company died while the capability didn’t.
of query volume covered by the top 5 template clusters, across the workloads QueryBot 5000 studied (SIGMOD 2018).
configuration knobs in PostgreSQL (MySQL: 500+). They interact nonlinearly, and the defaults are tuned for a machine from 2008.
valid two-node-type designs from ~50 layout primitives (Idreos et al., SIGMOD 2018). B-trees, LSM-trees, tries, hash tables: just the famous coordinates.
The first broadly deployed autonomous DBA is not inside the engine — it holds a connection string and a master prompt.
EXPLAIN, stats, migrations.checkpoint_completion_target spreads checkpoint I/O.-- branch: tune/checkpoint-2026-06-09 (fork of prod@LSN 0/8A3F1C40)
-- hypothesis: p99 spikes align with checkpoints (~every 140s)
ALTER SYSTEM SET max_wal_size = '8GB'; -- was 1GB
ALTER SYSTEM SET checkpoint_completion_target = 0.9; -- was 0.5
-- replay: 30 min, 14,212 statements, agent-traffic mix 71%
-- result: p99 412ms → 287ms · p50 38ms → 37ms
-- WAL volume +9% · recovery-time est. +6.2 min
-- gate: p99 −20%, WAL ≤ +15%, recovery ≤ +10 min → PASS
-- action: open PR with diff + transcript; do NOT touch prod
ALTER TABLE … ADD COLUMN … DEFAULT — “safe in Postgres 11+,” correctly cited.ACCESS EXCLUSIVE on orders.| Component | Status 2026 | Why |
|---|---|---|
| Automatic indexing | Production, fleet-scale | Azure SQL since 2019; verify + auto-revert |
| Knob tuning | Absorbed into platforms | OtterTune dead 2024; lives as defaults |
| Optimizer steering | Production, narrow | Bao-style hints; classical optimizer as floor |
| Learned cardinality | Advisor-mode / lab | Wins benchmarks; loses on drift, tail risk |
| Learned indexes | Niche | Absorbed into LSM parts; B-tree undefeated |
| LLM agent as DBA | Early production, gated | Branch-only DDL, evals, human-merged PRs |