Skip to content

Instantly share code, notes, and snippets.

@DavidBrower
Last active July 18, 2018 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidBrower/1d4882fa1f8b65ea405cb0cbe2c3ff6e to your computer and use it in GitHub Desktop.
Save DavidBrower/1d4882fa1f8b65ea405cb0cbe2c3ff6e to your computer and use it in GitHub Desktop.
Mongo Commands
--Get execution stats for a query
db.people.find({"ssn": "720-38-5636"}).explain("executionStats")
--Get explain object
exp = db.people.find({"ssn": "720-38-5636"}).explain("executionStats")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment