Last active
June 7, 2016 07:26
-
-
Save bcastellano/e96d20bf3974d9bf3c98 to your computer and use it in GitHub Desktop.
MongoDB activar y borrar profile (log de queries)
This file contains hidden or 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
// activar logging de queries | |
db.setProfilingLevel(2,0);db.setLogLevel(1); | |
// listar queries ejecutadas | |
db.system.profile.find() | |
// borrar queries ejecutadas y volver a activar | |
db.setProfilingLevel(0);db.system.profile.drop();db.setProfilingLevel(2,0);db.setLogLevel(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment