-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
SERVER-80917 translated MatchExpressions with a parameter marker to a FunctionCall[getParam] node with two children: (1) Constant representing the parameter ID and (2) Constant representing the SBE type tag of the constant.
SERVER-83423 is storing the constants themselves in an auxiliary structure called QueryParametersMap.
To avoid storing duplicate information, we can remove the 2nd child of the FunctionCall node which this information can be derived by looking up the constant in the QueryParameterMap.