使用MongoDB v3.0.3。在运行db.grades.explain().find()时遇到问题-我一直收到消息"TypeError: db.grades.explain不是一个函数(外壳):1“
但是,我可以使用db.grades.find().explain() --但是使用此方法返回的信息不如collection.explain()有用。
发布于 2015-08-26 23:18:22
事实证明,这是因为我使用的是Robomongo (0.8.5版本),我只是假设你可以在shell中做的所有事情,你都可以在Robomongo中做,但显然不是。当我切换到使用命令行时,db.collection.explain()工作得很好。
https://stackoverflow.com/questions/32230509
复制相似问题