Created
February 15, 2024 08:56
-
-
Save parsibox/4c82fc55c9316f97a1fc22aac6c1fa95 to your computer and use it in GitHub Desktop.
log all queries using the following queries:
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
$ mongo | |
MongoDB shell version: 2.4.9 | |
connecting to: test | |
> use myDb | |
switched to db myDb | |
> db.getProfilingLevel() | |
0 | |
> db.setProfilingLevel(2) | |
{ "was" : 0, "slowms" : 1, "ok" : 1 } | |
> db.getProfilingLevel() | |
2 | |
> db.system.profile.find().pretty() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment