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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

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