Rule-based optimizer
A query optimization strategy that uses predefined rules to select execution plans, without analyzing actual data statistics.
Rule-based optimization was the standard approach in early relational databases (Oracle, Ingres, Sybase) before cost-based optimization became feasible. The optimizer had a fixed set of ranking rules—for example, "use an index if one exists" or "join small table first"—and applied them mechanically without looking at table statistics. This approach was fast to compute but often produced suboptimal plans. A table with a million rows might use an index when a full scan would be faster. Starting in the 1990s, cost-based optimization replaced rules by using statistics to estimate the real cost of different execution plans, leading to dramatically better performance.