robbiblubber.org

help | login | search:  
>>

read  source  history 


stats()


MongoDB Driver Function Reference


Retrieves storage statistics for a database.
More information can be found in the corresponding entry of the MongoDB Manual.



<collection>.stats([<scale>])



Arguments


<collection> The target collection.
<scale> Scale in bytes.



Return Value


Returns a result set (cursor).



Example


db.employees.stats();


Gets the storage statistics for the employees collection.






home | MongoDB Driver Function Reference | MongoDB Driver