Last active
May 10, 2018 01:43
-
-
Save sarjarapu/94bfe43f80516645eefd6e49256a5a70 to your computer and use it in GitHub Desktop.
The MongoDB currentOp command to help find queries not using any index
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.adminCommand({ | |
"currentOp": true, | |
"op" : "query", | |
"planSummary": "COLLSCAN" | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment