conditionally push $match before $addFields in aggregation pipeline

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Fully Compatible
    • v3.4
    • Query 2017-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      $addFields is a new stage for 3.4 for aggregation and the same optimization that was made for some $project in SERVER-19153 should be made for $addFields.

      (i.e. if $match is not on fields that are created/involved in $addFields then it can go before $addFields).

              Assignee:
              Kyle Suarez (Inactive)
              Reporter:
              Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: