Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101544

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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • 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 Unassigned
            Reporter:
            militsa.sotirova@mongodb.com Militsa Sotirova
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None