sudo add-apt-repository ppa:vikasadiwal/ppa
sudo apt-get update
sudo apt install dbexplainJust type this in the terminal:
dbexplainOr else visit localhost/dbexplain/ in your browser of choice!
I have included a sample DB for testing. You can import it using :
mongoimport -v --file=sample_db/zips.jsonThis will create a Database named 'test' and using that db it will fill up collection 'zips'. Now you can fire up these commands below to parse Query Plan. For example:
mongo localhost/test --eval "db.zips.find().limit(10).explain('allPlansExecution')" > test.json


