This article is just a reference for useful patterns, queries, tips and tricks regarding MongoDB and its python clients.
maybe the following can be helpful to check whats running on a db (monitoring?)
db.currentOP(true)
get the total index size for a collection:
db.getCollection('meta_db_collection').totalIndexSize()
when creating an index in background, check the progress:
db.currentOp(true).inprog.forEach(function(op){ if(op.msg!==undefined) print(op.msg) })
mongo, pymongo, motor, index