我不得不把一百万份文件存储到Mongodb中。Mongodb集群由4个碎片、1个mongos和1个配置服务器组成。
如何获取文档的详细信息,如:
发布于 2015-08-07 13:58:12
嘿,要找到文档的位置,可以使用[化]()
查找文档的位置的步骤
1. Open Mongos terminanl
2. Switch to your databse
3. find document of which you want to search location using explain()
eg db.collection.find({"x":1234}).explain()您将获得json格式的结果,请在其中查找碎片键。更多详细信息请查看链接
https://stackoverflow.com/questions/31879251
复制相似问题