MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / optimize

Method optimize

graphlite/src/plan/optimizers/physical_optimizer.rs:30–42  ·  view source on GitHub ↗

Optimize a physical plan Originally: optimizer.rs line 2122

(&self, plan: PhysicalPlan)

Source from the content-addressed store, hash-verified

28 /// Optimize a physical plan
29 /// Originally: optimizer.rs line 2122
30 pub fn optimize(&self, plan: PhysicalPlan) -> Result<PhysicalPlan, PlanningError> {
31 let mut optimized_plan = plan;
32
33 // Apply index scan optimization based on setting
34 if self.avoid_index_scan {
35 optimized_plan = self.disable_index_scans(optimized_plan)?;
36 }
37
38 // TODO: Implement other physical optimizations like:
39 // - Operator selection (hash vs nested loop join)
40 // - Parallel execution planning
41 Ok(optimized_plan)
42 }
43
44 /// Disable index scans in the physical plan
45 /// Originally: optimizer.rs line 2137

Calls 1

disable_index_scansMethod · 0.80