Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check mognodb size

from pymongo 
import MongoClient  
client = MongoClient() 
db = client.test  
# print collection statistics 
# events is the collection name here 
print(db.command("collstats", "events"))
# print database statistics 
print(db.command("dbstats"))
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #python #check #mognodb #size
ADD COMMENT
Topic
Name
5+3 =