Avoid duplicating sampling invocation for simple IndexScan -> Fetch plans

XMLWordPrintableJSON

    • Query Optimization
    • Fully Compatible
    • 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:
            Naafiyan Ahmed
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: