Created
September 18, 2013 15:33
-
-
Save kmila/6610978 to your computer and use it in GitHub Desktop.
mongodb_debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.setProfilingLevel(2) -> debug mode | |
db.system.profile.find().sort({$natural:-1}); -> example with first line representing last execution | |
db.setProfilingLevel(0) -> disables debug mode | |
db.coll_name.help() | |
mongoexport --collection coll_name --out /tmp/dump.json --db db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment