mongodb - How expensive is db.stats()? -


i need ping mongodb database on regular basis , wondering if safe execute db.stats() on every ping. "safe" mean db.stats() "cheap" operation not disrupt or lower overall db performance.

db.stats() takes read lock, overall not costly operation. time required run command depends on total size of database. command must touch data files may take several seconds run.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -