Rule-Based Optimization
A query optimization strategy that uses predetermined rules to choose an execution plan instead of calculating the cost of different alternatives.
A rule-based optimizer follows a hierarchy of heuristic rules: "if the query has a join and there's an index on the join column, use nested-loop join", "if there's an index, always use it", etc. This is simple and fast to plan but can make poor choices for certain queries.
Modern databases use cost-based optimization (CBO), which estimates the cost of each possible plan and chooses the cheapest. CBO is slower to plan but typically produces better execution plans. Older systems like dBase and Informix relied on rule-based optimization for simplicity and to avoid expensive cost calculations during planning.