Created
October 22, 2011 19:40
-
-
Save jgonera/1306405 to your computer and use it in GitHub Desktop.
Dumb MongoDB benchmark
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
var i, project; | |
for (i=0; i<1000000; ++i) { | |
project = db.projects.find({"_id": ObjectId("4ea1661a3a5c9f09b5000005")}); | |
project[0].name; // to actually fetch the object | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment