Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
None
-
None
Description
http://www.mongodb.org/display/DOCS/Database+Profiler
In the doc:
> db.system.profile.find()
|
{"ts" : "Thu Jan 29 2009 15:19:32 GMT-0500 (EST)" , "info" : "query test.$cmd ntoreturn:1 reslen:66 nscanned:0 <br>query: { profile: 2 } nreturned:1 bytes:50" , "millis" : 0}
|
...
|
In the shell:
> db.system.profile.find()
|
{ "ts" : ISODate("2012-01-05T15:48:13.735Z"), "op" : "query", "ns" : "test.system.namespaces", "query" : { }, "nscanned" : 21, "nreturned" : 21, "responseLength" : 1068, "millis" : 0, "client" : "127.0.0.1", "user" : "" }
|
{ "ts" : ISODate("2012-01-05T14:31:35.450Z"), "op" : "command", "ns" : "test.$cmd", "command" : { "create" : "test123", "capped" : null, "size" : null, "max" : null }, "ntoreturn" : 1, "responseLength" : 37, "millis" : 59, "client" : "127.0.0.1", "user" : "" }
|
Difference in info section and op,ns,command,query