Starting from a 1999 optimizer implementation, this series covers porting → full TPC-H acceptance → cost-model calibration → trap reviews. You’ll learn why a plan looks the way it does, and which mistakes are semantic.
Database & Optimizers
From porting COLUMBIA and passing all 22 TPC-H queries to the real traps inside an optimizer.
- 22/22 TPC-H queries
- 19,787 lines of COLUMBIA
- q11 search space 46k → 135 groups
All posts
- Porting a 1999 Cascades Optimizer to Modern C++: The COLUMBIA Story2026-10-20
- Making an Optimizer Run TPC-H: Lossless Conversion and Execution Reconciliation for 22 Queries2026-10-20
- Six Real Traps in an Optimizer: Matching Results Don't Mean a Correct Plan2026-10-20
- Writing a Query Optimizer: From COLUMBIA to TPC-H2026-10-20
- The Optimizer's Cost Model: From Formulas to Calibrated Numbers2026-10-20