-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query Execution
-
QE 2022-07-11, QE 2022-07-25, QE 2022-08-08, QE 2022-08-22
We have observed that the way we translate certain MQL constructs to SBE in the SBE stage builders can be inefficient. ABT lowering will do things fundamentally differently in that it produces plans with traverse expressions rather than traverse plan stages. These expressions will compile to bytecode and be executed by the VM which has the potential to be faster than executing a complex tree of sbe::PlanStage objects.
As an experiment, we should try using the ABT lowering code from the Bonsai optimizer POC to build SBE plans. We can start with MatchExpressions: convert MatchExpression to ABT, then convert the ABT to an EExpression which can compile to bytecode. It would also be interesting to do the same thing for projections, especially simple inclusion/exclusion projections which are common for find commands.
- related to
-
SERVER-68969 Replace TraverseStage with traverseF expressions in sbe_stage_builder_filter.cpp
- Closed