Avoid duplicating sampling invocation for simple IndexScan -> Fetch plans

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      One of the things that SERVER-97864 added was the ability to recognize IndexScan -> Fetch plans and estimate the cardinality of the Fetch node using the estimateRIDs function. However, if the fetch does not have a residual filter, then there is no need to sample again, we can just return the estimate for number of RIDs from the child IndexScan.

              Assignee:
              Unassigned
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: