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

[CQF] Should collect timing info for SBE execution plans created by Bonsai

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-12-25

    Description

      The explain outputs for execution stats are inconsistent between CQF and "classic" optimizers.

      Specifically, in "executionStats" CQF does not expose "executionTimeMillisEstimate", "executionTimeMicros", "executionTimeNanos".

      Although the SBE machinery should be already in place, It seems that the CQF explainer does not expose those fields. This ticket should address this along with extending the corresponding tests.

      There are "TODO SERVER-83762" tags in js tests, which need to be addressed.

      hana.pearlman@mongodb.com investigated this further and recognized that:
      "the problem is this] line, where we only mark that we should collect timing info when expCtx->mayDbProfile. However, the stage builders version of this code checks expCtx->explain too."

      Attachments

        Activity

          People

            hana.pearlman@mongodb.com Hana Pearlman
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: