-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Server
-
Labels:None
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'}})
- is related to
-
DOCS-8851 3.4 - update shardCollection command for collation
- Closed
-
SERVER-27032 support for collation in sh.shardCollection() helper
- Closed