MongoDB开启慢查询

1 查看是否开启慢查询

db.getProfilingStatus()

2 开启慢查询 

 db.setProfilingLevel(1,100); 

3 查看慢查询 

db.system.profile.find();

原文地址:https://www.cnblogs.com/DBABlog/p/12926863.html