Profile slow queries mongodb

Capture ops slower than 100ms then read top offenders from system.profile

mongosh --eval 'db.setProfilingLevel(1,{slowms:100}); db.system.profile.find().sort({millis:-1}).limit(5)'
more mongodb all 20 commands →