sh.enableSharding()

sh.enableSharding(database)
参数:
  • database (string) – Specify a database name to shard.

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

也可以参考

sh.shardCollection()

MongoDB Manual (Index)

关于

生态系统

格式

资源