Make distinct scan tie breaking more granular & correct

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • 200
    • None
    • 3
    • 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
              Reporter:
              Alya Berciu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: