Coalesce adjacent exclusion $project stages and non-overlapping $addFields stages

XMLWordPrintableJSON

    • Query
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We can replace

      [ {$project:{a:0}}, {$project:{b:0}}, {$project:{c:0}}]
      

      with

      [ {$project:{a:0, b:0, c:0}} ]
      

      which will be faster.

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: