Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3398

Investigate changes in PM-3493: Backport: Make Shard Key Index Optional For Hashed Sharding

    • Type: Icon: Investigation Investigation
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Original Downstream Change Summary

      Users can drop the shard key index for hashed shard keys in 5.0, 6.0 and 7.0.

      Description of Linked Ticket

      Epic Summary

      Summary

      This project is a backport for Make Shard Key Index Optional for Hashed Sharding (PM-3398). Allow dropping the index for a hashed shard key after the collection is sharded.

      Motivation

      This project speeds up mongosync when synchronizing collections with hashed sharding. From preliminary performance testing, it is evident that dropping the hashed shard key index adds at least a 10% increase in insert performance. This is due to 2 reasons:

      1. the minimum number of indexes for a collection with a hashed shard key goes from 2 to 1
      2. hashed indexes are known to degrade performance due to cache refreshes.

      Thus, backporting this project will enable significant performance gains for customers on older versions of MongoDB.

      Documentation

      Scope
      Docs Update

            Assignee:
            Unassigned Unassigned
            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: