[SERVER-82283] Consider removing optimize call from $expr rewriter Created: 18/Oct/23 Updated: 16/Jan/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Alexander Ignatyev | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Optimization
|
| Sprint: | QO 2023-11-27, QO 2023-12-11, QO 2023-12-25, QO 2024-01-08 |
| Participants: |
| Description |
|
ExprMatchExpression's optimizer in ExprMatchExpression::getOptimizer() function first calls $expr rewriter to rewrite its child expression and then calls optimize() on a new expression which includes the rewritten expression. The $expr rewriter calls optimize() on the rewritten expression as well. One of the two calls seems to be redundant, please consider if one the calls can be safely removed. |