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

Make distinct scan tie breaking more granular & correct

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We shouldn't be acquiring an FCV snapshot to check if we can apply this optimization (technically, we probably don't even need a feature flag check here, since we would have decided whether or not to multiplan distinct scans much earlier).

      In fact, we should leverage the existing multiplanning tie-breaking logic that compares indexes, as it is more robust.

            Assignee:
            alya.berciu@mongodb.com Alya Berciu
            Reporter:
            alya.berciu@mongodb.com Alya Berciu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None