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

Add new implicitlyCreateIndex and enforceUniquenessCheck to shardCollection command

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: