Aggregation plan summary incorrectly reports keysExamined and docsExamined

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: