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

Aggregation plan summary incorrectly reports keysExamined and docsExamined

    • Fully Compatible
    • ALL
    • Query 2016-10-10

      On each batch we load through DocumentSourceCursor, we will accidentally bump the keysExamined and docsExamined instead of resetting them to zero and then re-computing them.

      More specifically, Explain::getSummaryStats() is called (indirectly) during DocumentSourceCursor::loadBatch(). That will increment the totalKeysExamined and totalDocsExamined for each stage, but these were never reset to 0, so it will double count the first batch.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: