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

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.12
    • None
    • manual
    • None

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 17 weeks, 5 days ago