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

Incorrect FAQ in sharding section - shard keys can be changed in 4.2

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual, Server
    • Labels:
      None

      Description

      Description

      Hi All,

      It looks like the FAQ sharding section "Can I change the shard key after sharding a collection" needs to be updated with the release of 4.2 per "Change a Document’s Shard Key Value", specifically noting:

      Starting in MongoDB 4.2, you can update a document’s shard key value unless the shard key field is the immutable _id field.

      You could start the text with something like:

      No, when you are using MongoDB 4.0 or earlier. Yes, if you are using MongoDB 4.2 and the shard key is not the immutable _id field.

      Thanks!
      Eoin

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Activity

            People

            Assignee:
            kay.kim Kay Kim (Inactive)
            Reporter:
            eoin.brazil Eoin Brazil
            Participants:
            Last commenter:
            Kay Kim Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              2 years, 15 weeks, 5 days ago
              Date of 1st Reply: