Investigate if DocumentSourceMatch::joinMatchWith can operate over MatchExpression instead of BSONObj

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-99121 tried to do this, but there was a perf regression from the additional call to MatchExpression::serialize() at the end. SERVER-101070 fixed the perf regression by reverting joinMatchWith back to the old behavior. It would be preferable if joinMatchWith could operate over the MatchExpressions instead since the MatchExpression is kept up to date after pipeline optimization and the backing BSON is not, which means that calling joinMatchWith currently wastes any work done by optimization, and has the potential to bring back predicates that have been optimized away. This is part of what led to the issue fixed by SERVER-99121.

              Assignee:
              Unassigned
              Reporter:
              Militsa Sotirova
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: