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

Avoid duplicating sampling invocation for simple IndexScan -> Fetch plans

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

      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 Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: