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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.12
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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

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

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