DocumentSourceSort does not report specific stats from _timeSorter

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2025-04-14
    • 200
    • None
    • 3
    • None
    • 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
              Reporter:
              Ivan Fefer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: