MongoDB 查看集合与索引状态命令

1、查看集合状态命令

MongoDB Enterprise > db.trs_action_dzwl_zm.stats()

 2、查看索引状态命令

MongoDB Enterprise > db.trs_action_dzwl_zm.stats({indexDetails:true})

3、db.collection.stats()命令详解

db.restaurants.stats()

db.restaurants.stats( { scale : 1024 } )

db.restaurant.stats( { indexDetails : true } )

db.restaurants.stats(
   {
      'indexDetails' : true,
      'indexDetailsName' : 'borough_1_cuisine_1'
   }
)   ##测试了,没效果

猜你喜欢

转载自www.cnblogs.com/xibuhaohao/p/12060356.html