Consider removing optimize call from $expr rewriter

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • QO 2023-11-27, QO 2023-12-11, QO 2023-12-25, QO 2024-01-08
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Alexander Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: