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

Investigate changes in SERVER-42368: Remove max shard key value size limit


      Change Description:

      Shard key value size limit is documented at https://docs.mongodb.com/manual/reference/limits/#Shard-Key-Size (and possibly elsewhere), which will need to be updated. This change should also be mentioned in the release notes.

      SERVER ticket description:

      Shard key values have a max size limit of 512 bytes which is enforced on mongos when writing new documents (e.g. for inserts) and when validating the split points when committing a chunk split.

      Because of this, if a user refined the shard key of their collection to include a field all documents have large values for, they would be unable split their chunks because all possible split points would be over the limit. To avoid this scenario without scanning the documents in a collection before refining the collection's shard key and now that that limit on index keys has been lifted (PM-284), this limit should be removed.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

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

            kay.kim@mongodb.com Kay Kim (Inactive)
            backlog-server-pm Backlog - Core Eng Program Management Team
            0 Vote for this issue
            2 Start watching this issue

              4 years, 9 weeks, 4 days ago