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

Allow reshardCollection() to not require the hashed index for hashed shard keys

    • Type: Icon: Improvement Improvement
    • 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-22, Cluster Scalability 2024-08-19, Cluster Scalability 2024-09-02
    • 2

      Given that we can drop the hashed index, it means we also don't have to require it in the first place when someone is sharding a collection with a hashed shard key.

      Today, people have to build the hashed index, shard the collection, then drop the hashed index. Building an extra index not only takes time, but also impacts your workload, both the index building itself and the existence of an extra index even if temporary.

      So let's not require it in the first place for hashed shard keys.

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

              Created:
              Updated:
              Resolved: