0
我創建了兩個碎片,並且關鍵是年齡象下面這樣:如何檢查每個mongodb分片中的數據?
db.runCommand({addshard: "localhost:10000", allowLocal: true, maxsize: 0.1, minkey: 1, maxkey: 1})
db.runCommand({addshard: "localhost:10001", allowLocal: true, maxsize: 0.1, minkey: 2, maxkey: 2})
db.runCommand({enablesharding: "foo"})
db.runCommand({shardcollection: "foo.items", key: {"age": 1, "_id":1}, unique: true})
如何在whcih碎片檢查數據? 或者我怎樣才能從指定的碎片獲取數據? 這可能嗎?