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

Avoid duplicated work in QueryPlannerParams::fillOutSecondaryCollectionsPlannerParams

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution

      Currently, in the event of a an aggregation with a $lookup on the main collection (i.e., a self $lookup), QueryPlannerParams::fillOutSecondaryCollectionsPlannerParams regenerates CollectionInfo, to be stored in secondaryCollectionsInfo.

      This is wasteful, and leads to two versions of the same data, which could potentially become inconsistent.

      This should be simplified, so that there is a single, canonical place to find collection info for the main colleciton.

            Assignee:
            Unassigned Unassigned
            Reporter:
            james.harrison@mongodb.com James Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: