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

Make hashed shard key index optional upon sharding the collection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • Cluster Scalability 2024-07-08, Cluster Scalability 2024-07-22, Cluster Scalability 2024-08-19, Cluster Scalability 2024-09-02

      SPM-3398 enables users to drop the shard key index for a collection that is sharded on a hashed shard key since the shard key index is only required by chunk migrations and range deletions, and hashed sharded collections generally do not require chunk migrations since hash sharding already provides good data distribution and customers in 5.0+ can always use resharding to redistribute their data. However, SPM-3398 doesn't allow users to have a hashed sharded collection without the shard key index from the start. That is, they need to create the index, shard the collection and then drop it. The goal of this ticket is to explore making the index optional upon sharding the collection. 

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: