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

note that users do not need to compute hash values for hashed shard key values.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      This entry in the manual: http://docs.mongodb.org/manual/reference/command/findAndModify/

      at the end says "Warning When using findAndModify in a sharded environment, the query must contain the shard key for all operations against the shard cluster. findAndModify operations issued against mongos instances for non-sharded collections function normally."

      We could specify that when using a hashed index simply specify the _id value, and/or we could modify this page: http://docs.mongodb.org/manual/tutorial/create-a-hashed-index/

      Unsure if other pages may need to be updated.

            Assignee:
            bgrabar Bob Grabar
            Reporter:
            kelly.stirman Kelly Stirman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

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