Skip to content

Instantly share code, notes, and snippets.

@kali
Created August 31, 2014 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kali/dd1641594259d27f4fd7 to your computer and use it in GitHub Desktop.
Save kali/dd1641594259d27f4fd7 to your computer and use it in GitHub Desktop.
> db.setProfilingLevel(2)
{ "was" : 0, "slowms" : 100, "ok" : 1 }
> db.test.find({ data: {$gt: ISODate("2014-08-31")}})
> db.system.profile.find().limit(10).sort( { ts : -1 } ).pretty()
{
"op" : "query",
"ns" : "test.test",
"query" : {
"data" : {
"$gt" : ISODate("2014-08-31T00:00:00Z")
}
},
"ntoreturn" : 0,
"ntoskip" : 0,
"nscanned" : 0,
"nscannedObjects" : 0,
"keyUpdates" : 0,
"numYield" : 0,
"lockStats" : {
"timeLockedMicros" : {
"r" : NumberLong(5912),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(1),
"w" : NumberLong(3)
}
},
"nreturned" : 0,
"responseLength" : 20,
"millis" : 5,
"execStats" : {
},
"ts" : ISODate("2014-08-31T10:03:38.988Z"),
"client" : "127.0.0.1",
"allUsers" : [ ],
"user" : ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment