Thursday 3 August 2023

MongoDB Statistics

 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

No comments: