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

conditionally push $match before $addFields in aggregation pipeline

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

      $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@mongodb.com Kyle Suarez
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: