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

Document that in a sharded cluster update where multi is false only works when the query includes the shard key

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      mongos> db.foo.update({},{$set:{a:1}})
      For non-multi updates, must have _id or full shard key ({ _id: 1.0 }) in query

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 23 weeks, 2 days ago