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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding Team
              Reporter:
              daniel.roberts@10gen.com
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: