mongodb查看索引使用情况
摘要:
db.getCollection("collectionName").aggregate([{$indexStats:{}}]) db.runCommand({createRole:"index_stats_role",privileges:[{resource:{"db":"dbName","co 阅读全文
posted @ 2022-07-14 10:17 河蟹黄 阅读(506) 评论(0) 推荐(0) 编辑