[DOCS-9365] Shell helper sh.shardCollection() takes options parameter Created: 22/Nov/16  Updated: 30/Oct/23  Resolved: 20/Dec/16

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Steve Renaker (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-8851 3.4 - update shardCollection command ... Closed
is related to SERVER-27032 support for collation in sh.shardColl... Closed
Participants:
Days since reply: 7 years, 8 weeks, 2 days ago

 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'}})



 Comments   
Comment by Githook User [ 19/Dec/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-9365: Shell helper sh.shardCollection() takes options parameter

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/bede577d4a9fcb3e99feaa2fcbb9ea738bf03cac

Comment by Githook User [ 19/Dec/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-9365: Shell helper sh.shardCollection() takes options parameter

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/dae8cd012e1fcb0bd0a5e80213fab9c1222e9358

Generated at Thu Feb 08 07:58:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.