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

Report stricter list of dependencies for $unionWith stage

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization

      The $unionWith stage currently reports that it requires the whole document in order to maintain consistency between each branch of the union operation. Conceptually, we could do better (and potentially get a covered plan) if the union stage acted like more of a passthrough case and allowed an inclusion projection of referenced fields to be pushed down to the query system. However, if we were to allow this, it would also be desirable to push this subset of fields to the inner pipeline of the union.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: