查看mongodb索引被使用的次数

时间:2021-01-20 11:52:58   收藏:0   阅读:0

版本要求>3.2

db.tablename.aggregate( [ { $indexStats: { } } ] )

官网地址:https://docs.mongodb.com/manual/reference/operator/aggregation/indexStats/

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!