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

Allow fast-distinct scan on indexes with non-simple collation

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.12
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2016-08-29

      In getExecutorDistinct(), we use the function turnIxscanIntoDistinctIxscan() to convert an IXSCAN into a DISTINCT_SCAN in a QuerySolution where possible. It only applies to solutions with a PROJECTION as the root, and an IXSCAN as its child. This will not apply to indexes with non-simple collation, because there the IXSCAN stage is always followed by a FETCH stage. It should be possible to convert the IXSCAN into a DISTINCT_SCAN for an index with a non-simple collation anywhere that it is possible for an index with a simple collation.

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: