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

[POC] Enforce uniqueness constraint early during collMod converting index to unique

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Execution Team 2022-01-24, Execution Team 2022-02-07

    Description

      Currently we install a concurrent writes tracker while scanning the index for duplicates while only holding an IX lock. We would like to reject those concurrent writes if they have any violations on the uniqueness constraint right away instead of letting collMod handle them.

      Attachments

        Activity

          People

            yuhong.zhang@mongodb.com Yuhong Zhang
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: