mongotemplate. getCollection().distinct();
mongodb 里也有explain命令,看下执行计划,具体分析一下。 比如:db.collectionname.find().explain( “executionStats” );