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

conditionally push $match before $addFields in aggregation pipeline

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2
    • Component/s: Aggregation Framework
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.4
    • Sprint:
      Query 2017-01-23
    • Case:

      Description

      $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).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kyle.suarez Kyle Suarez
              Reporter:
              asya Asya Kamsky
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: