Track extra document reads in write_stage_common::ensureStillMatches

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we under-report docsExamined statistics for updates and delete because when Update or Delete stage fetches document again (for example, after yield) to check if it still matches the predicate, this fetch goes unrecorded:

      https://github.com/mongodb/mongo/blob/957f8190585652324c9fc9708bf97a00dc22f5c5/src/mongo/db/exec/write_stage_common.cpp#L142

       

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: