Skip to content

Instantly share code, notes, and snippets.

@sarjarapu
Last active May 10, 2018 01:43
Show Gist options
  • Save sarjarapu/94bfe43f80516645eefd6e49256a5a70 to your computer and use it in GitHub Desktop.
Save sarjarapu/94bfe43f80516645eefd6e49256a5a70 to your computer and use it in GitHub Desktop.
The MongoDB currentOp command to help find queries not using any index
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