The Optimizer's Cost Model: From Formulas to Calibrated Numbers
The search space decides how many plans you can think of; the rules decide what shapes are reachable; and the cost model decides who wins. Whether an optimizer is usable depends heavily on whether its cost model “makes sense”. This post takes COLUMBIA’s cost model apart, plus the traps we hit when calibrating it on TPC-H. 1. What COLUMBIA’s cost model looks like Minimal: a cost model is a set of constants plus a local-cost formula per physical operator. ...