OPTIONS

sh.enableSharding()

On this page

Definition

sh.enableSharding(database)

Enables sharding on the specified database. This does not automatically shard any collections but makes it possible to begin sharding collections using sh.shardCollection().

The sh.enableSharding() method has the following parameter:

Parameter Type Description
database string The name of the database shard. Enclose the name in quotation marks.

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.