- Reference >
- Database Commands >
- Sharding Commands >
- enableSharding
enableSharding¶
- enableSharding¶
The enableSharding command enables sharding on a per-database level. Use the following command form:
{ enableSharding: "<database name>" }
Once you’ve enabled sharding in a database, you can use the shardCollection command to begin the process of distributing data among the shards.
Thank you for your feedback!
We're sorry! You can Report a Problem to help us improve this page.