Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4271

Shard key (512 bytes) maximum is less than Index key (1024 bytes) maximum

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding

      Currently the shard key maximum (512 bytes) is less than the index key maximum (1024 bytes) hence an error is thrown when you attempt to shard on an index key that is greater than 512 bytes. Consequently it may become impossible to shard on the most appropriate index key for your application if the size is above the 512 byte maximum of the shard key.

      Error returned is "Shard Key must be less than 512 bytes".

      Increasing the shard key maximum to 1024 bytes would solve this problem.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            daniel.roberts@10gen.com daniel.roberts@10gen.com
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: