Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9365

Shell helper sh.shardCollection() takes options parameter

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • None
    • Server
    • None
    • KANBAN BUCKET
    • true

    Description

      In 3.4, the shell helper sh.shardCollection() takes an additional parameter options, so it now has the signature sh.shardCollection(namespace,key,unique,options). options must be a document. Any fields in options are passed straight through to the shardCollection command. Expected fields include numInitialChunks and collation.

      For example,

      sh.shardCollection('test.coll', {a: 1}, false, {numInitialChunks: 5, collation: {locale: 'en_US'}})
      

      Attachments

        Issue Links

          Activity

            People

              steve.renaker@mongodb.com Steve Renaker (Inactive)
              tess.avitabile@mongodb.com Tess Avitabile (Inactive)
              Jonathan Dahl Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 40 weeks, 6 days ago