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

Support microsecond precision in ScopedTimer

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • QO 2022-06-13, QO 2022-06-27, QO 2022-07-11, QO 2022-07-25, QO 2022-08-08
    • 1

      We should collect more precise estimates of execution time. The ScopedTimer currently uses a SystemClockSource which only has millisecond precision generating imprecise and unstable estimates in some cases. Consider replacing the SystemClockSource with the SystemTickSource.

      Expected outcome of this ticket:

      1. "executionTimeMillisEstimate" in the explain output should be more precise.
      2. Introduce an additional field "executionTimeMicrosEstimate" in the explain output for cost calibration use. This new field should be guarded by an internal query knob. It will be added to the explain output only if requested. 

            Assignee:
            ruoxin.xu@mongodb.com Ruoxin Xu
            Reporter:
            ruoxin.xu@mongodb.com Ruoxin Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: