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

Avoid calls to fillOutPlannerParams() unless a replan is triggered

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2021-11-29, QO 2021-12-13, QO 2021-12-27, QO 2022-01-10, QO 2022-01-24, QO 2022-02-07, QO 2022-02-21, QO 2022-03-07, QO 2022-03-21, QO 2022-04-04
    • 135

    Description

      Currently we call fillOutPlannerParams() in the early stage of PrepareExecutionHelper::prepare() call. However, if we're about to recover the plan from the cache and not going to replan, this call is totally unnecessary as we're not going to call the the query planner. Given that this call is quite expensive, we should delay it until we know that we're going to replan.

      Attachments

        Activity

          People

            ruoxin.xu@mongodb.com Ruoxin Xu
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: