use db_xxx
db.setProfilingLevel(2)
db.system.profile.find().pretty()
一定要切换到指定数据库!
清空记录
db.setProfilingLevel(0)
db.system.profile.drop()
db.setProfilingLevel(1)
Mongoengine 在对QuerySet对象进行迭代的时候才会去查询数据库,多次迭代使用缓存.
use db_xxx
db.setProfilingLevel(2)
db.system.profile.find().pretty()
一定要切换到指定数据库!
清空记录
db.setProfilingLevel(0)
db.system.profile.drop()
db.setProfilingLevel(1)
Mongoengine 在对QuerySet对象进行迭代的时候才会去查询数据库,多次迭代使用缓存.
本文标题:MongoDB 执行语句记录查看方式
本文链接:https://www.haomeiwen.com/subject/iwuvohtx.html
网友评论