摘要: 1.开启日志,超过10毫秒的都记录db.setProfilingLevel( 1 , 10) 2.执行命令db.metric.aggregate([{$group: {_id: '$month', totalcnt: {$sum: 1}}}]) 3.查看执行情况 > db.system.profil 阅读全文
posted @ 2022-03-24 11:34 slnngk 阅读(1243) 评论(0) 推荐(0)