Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alkampfergit/53565f6dcb87eda80a86fbc108249f36 to your computer and use it in GitHub Desktop.
Save alkampfergit/53565f6dcb87eda80a86fbc108249f36 to your computer and use it in GitHub Desktop.
Enable mongo profiling, deleting old system.profile collection
db.setProfilingLevel(0, 100)
db.getCollection('system.profile').drop()
db.setProfilingLevel(1,100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment