Skip to content

Instantly share code, notes, and snippets.

@sarjarapu
Created May 10, 2018 01:44
Show Gist options
  • Save sarjarapu/8ae26c2056b5a3b19d7405742183485a to your computer and use it in GitHub Desktop.
Save sarjarapu/8ae26c2056b5a3b19d7405742183485a to your computer and use it in GitHub Desktop.
The MongoDB currentOp command to help you find database operations with number of yields greater than or equal to 100
db.adminCommand({
"currentOp": true,
"ns": /^guidebook\./,
"numYields" : {"$gte": 100}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment