UpdateStage does not track in explain mode the records that would have been updated

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The UpdateStage prevents updating the same record multiple times by tracking in updatedRecordIds the recordIds that have been updated. This structure is updated only when the flag indexesAffected is set to true, but the functions responsible to update it are bypassed in explain mode. As a result, updatedRecordIds is always empty in explain mode, and the _dedupReporter reports zero updates. We should update updatedRecordIds with the records that would have been updated, even in explain mode, allowing for correct reporting of dedupReporter metrics in the explain output.

            Assignee:
            Prabhas Penumatsa
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: