Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
Error on this page:
http://docs.mongodb.org/manual/administration/sharding/#set-up-a-sharded-cluster
It says:
To shard a collection, run the shardCollection command or the sh.shardCollection() shell helper.
|
|
|
db.runCommand( { shardCollection: "<database>.<collection>", key: "<shard-key>" } )
|
This actually doesn't work though. The syntax must be key:
{ "shardkey": 1 }