Created
November 17, 2014 18:16
-
-
Save comerford/1d9300a6e8a47bd3d012 to your computer and use it in GitHub Desktop.
Timed explain with execution for MongoDB 2.8
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
// the start/end is not really needed since explain contains timing information | |
// but, this is useful for comparison with other commands (touch) which do not have such info | |
var start = new Date().getTime(); | |
db.data.find().explain("executionStats") | |
var end = new Date().getTime(); | |
print("Time to touch data: " + (end - start) + "ms"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment