Skip to main content

optimize

Function optimize 

Source
pub fn optimize(plan: LogicalPlan) -> LogicalPlan
Expand description

Apply optimization rules to a logical plan.

Rules are applied bottom-up (children optimized first):

  1. Index scan selection: Filter(NodeScan) -> IndexScan when applicable
  2. Limit pushdown: Limit(NodeScan) -> NodeScan with limit annotation
  3. Constant folding: simplify constant expressions
  4. Projection pruning: merge consecutive Projects