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

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

      Description

      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.)

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

              Created:
              Updated:
              Resolved:
              4 years, 9 weeks, 4 days ago