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

DocumentSourceSort does not report specific stats from _timeSorter

    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2025-04-14
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In case of bounded sort optimization for timeseries, DocumentSourceSort will be created that will use _timeSorter instead of _sortExecutor to perform more optimal sort.

      However, getSpecificStats() does not account for that and only reports stats from _sortExecutor.

      This doesn't affect correctness of query execution, but leads to some statistics, for example, on spilling, to be missing from Slow query logs and profiler.
       

            Assignee:
            ivan.fefer@mongodb.com Ivan Fefer
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: