- Reference >
- Database Commands >
- Sharding Commands >
- enableSharding
enableSharding¶
-
enableSharding¶ The
enableShardingcommand enables sharding on a per-database level. Use the following command form:Once you’ve enabled sharding in a database, you can use the
shardCollectioncommand to begin the process of distributing data among the shards.