Skip to main content

selectivity_score

Function selectivity_score 

Source
pub fn selectivity_score(expr: &Expr) -> u32
Expand description

Rough selectivity estimate for AST predicates. Lower score → more selective (filters out more rows). Used to reorder and operands so cheaper / more-selective predicate runs first (short-circuit friendly).