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

Only compute params for query planning when necessary

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • 100

    Description

      We don't need to unconditionally compute collection stats here since they are only needed if the query might be able to use column scan (which is only applicable when there are column store indexes present).

      Similarly, we don't need to unconditionally initialize the planner params here - we can reduce unnecessary work filling out the params by just checking the index catalog for any CSIs present.

      Attachments

        Activity

          People

            alyssa.clark@mongodb.com Alyssa Clark
            alyssa.clark@mongodb.com Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: