Make insert on update (upsert: true) atomic with query + insert

XMLWordPrintableJSON

    • Major Change
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The update operation (with upsert:true) is not currently atomic, for both the query + resulting insert. In highly active environments this will results in duplicated documents or an error due to unique index constraints.

      The preferred behavior is that all updates will insert a new document or update the existing one, and not result in duplicate documents.

              Assignee:
              Unassigned
              Reporter:
              lubinwang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: