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

Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection command

    • Fully Compatible
    • v5.0, v4.4, v4.2
    • Sharding NYC 2022-03-21

      implicitlyCreateIndex defaults to true and when set to false, will not create new indexes while running the shardCollection command.

      enforceUniquenessCheck defaults to true and when set to false, ignores uniqueness property when validating indexes for shardCollection.

       Regardless of both settings, shardCollection should still return an error if there are no index that is compatible with the new shard key pattern.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: