Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1759

Clarify behavior of upsert operations when the query field has a unique index

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • v1.3.12
    • manual
    • None
    • 4
    • true

    Description

      See: SERVER-10350 for discussion.

      The behavior of updates and findAndModify with the upsert flag when the query predicate is on a unique index is the same. The findAndModify documentation explain this, but the update docs do not.

      See the end of this page: http://docs.mongodb.org/manual/reference/command/findAndModify/

      User suggests adding to this page as well:
      http://docs.mongodb.org/manual/core/create/#crud-create-update

      Attachments

        Issue Links

          Activity

            People

              sam.kleinman Sam Kleinman (Inactive)
              dan@mongodb.com Daniel Pasette (Inactive)
              Jess Mokrzecki Jess Mokrzecki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 16 weeks, 4 days ago