MongoDB 占用CPU资源过高

情况如下

 

 

db.currentOp() 发现有全表扫描

 

 

将 Collscan 对应的 Collection 建索引

db.Table1.createIndex({"DataTime":1})

db.Table1.getIndexes()

 

 

posted @ 2020-12-18 09:34  VipSoft  阅读(794)  评论(0)    收藏  举报