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

Collect number of keys sorted per operation

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2020-11-16, Execution Team 2020-11-30

      This metric will be collected by instrumenting the calls to _sorter->emplace() in mongo::sbe::SortStage::open(), _sorter->add() in DocumentSourceBucketAuto::populateSorter, and _sorter->add() in SortExecutor::add().

       

      Additionally, we will increment a metric counter if disk use occurred during sorting or grouping.  This metric will count the number of sorts that were larger than the in-memory sort limit and needed to spill to disk at least once.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: