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

CBR does not report estimates in explain for rooted $or queries

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

      SERVER-92475 was the initial implementation of CBR and the subplanner. It was written before we implemented estimates in explain, so the tests only verified that the last enumerated plan was selected (as opposed to the plan with the least cost, as that was the initial implementation of CBR). As such, we never realized that the EstimateMap returned from planWithCostBasedRanking is ignored in the subplanner codepath. This manifests in rooted $or plans never showing estimates, despite them being calculated.

      This ticket represents the work to plumb the estimates through to the plan explainer.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: