Skip to main content

optimize

Function optimize 

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

Apply all optimization passes to a ViewNode tree.

Pass order matters: merge filters first so pushdown sees fewer nodes, then push predicates toward scans, then prune redundant selects.