我愿执行大的行政指挥,其参数是 j。
指挥部是:
{ enablesharding : "test" }
{ shardcollection : "test.test_collection", key : {"number":1} }
How can I do it from java driver?
The following Code don t work:
mongo.getDb("admin").command("{shardcollection : "test.test_collection", key:"number":1} }")