MongoDB view the collection and indexing status command

1, view the collection status command

MongoDB Enterprise > db.trs_action_dzwl_zm.stats()

 

 2, see the indexing status command

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

3, db.collection.stats () command Detailed

db.restaurants.stats()

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

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

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

Guess you like

Origin www.cnblogs.com/xibuhaohao/p/12060356.html