If you want to objects statistics like (No. of object, collections, datasize etc. Available) follow below the commands.

use database
db.stats();                             <—————- Get the database level statistics
db.technology.stats();          <—————- Get the  collection level statistics

db.runCommand( { collStats : “restaurant”, scale: 1024 } )

 

For more Detail about Stats:

Database Stats: Click Here

Collection Stats: Click Here

Index Stats: Click Here

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.