1、查看集合状态命令

MongoDB Enterprise > db.trs_action_dzwl_zm.stats()

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

 

 2、查看索引状态命令

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

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

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'
   }
)   ##测试了,没效果

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-09-28
  • 2021-09-25
  • 2022-12-23
  • 2021-07-29
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-05-23
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案