0
나는 두 개의 파편을 생성하고, 키가 아래와 같이 나이 : 내가 whcih 파편에 데이터를 확인하려면 어떻게해야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})
? 또는 어떻게 특정 샤드에서 데이터를 얻을 수 있습니까? 가능합니까?