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

Make the distinct command always execute as an aggregation pipeline

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Querying
    • None

    Description

      We execute distinct over views as aggregations, but there is no reason that all distinct commands couldn't internally use the agg path.

      As part of this work, we need to allow the aggregation system to make use of the DISTINCT_SCAN fast path for aggregations that are logically distinct operations.

      Attachments

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              david.storch@mongodb.com David Storch
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: