|
I'm going to close this ticket because I believe we provide this information in the current version:
{
|
"op" : "command",
|
"ns" : "views.foo",
|
"command" : {
|
"aggregate" : "foo",
|
"pipeline" : [
|
... ],
|
"cursor" : {
|
|
},
|
"$db" : "views"
|
},
|
"cursorid" : NumberLong("8579475506467892867"),
|
"keysExamined" : 0,
|
"docsExamined" : 4,
|
"numYield" : 0,
|
"nreturned" : 101,
|
...
|
},
|
{
|
"op" : "getmore",
|
"ns" : "views.foo",
|
"command" : {
|
"getMore" : NumberLong("8579475506467892867"),
|
"collection" : "foo",
|
"$db" : "views"
|
},
|
"originatingCommand" : {
|
"aggregate" : "foo",
|
"pipeline" : [
|
...
|
],
|
"cursor" : {
|
|
},
|
"$db" : "views"
|
},
|
"cursorid" : NumberLong("8579475506467892867"),
|
"keysExamined" : 0,
|
"docsExamined" : 0,
|
"cursorExhausted" : true,
|
"numYield" : 0,
|
"nreturned" : 3899,
|
...
|
}
|
Same thing is visible in the logs.
|
|
The cursorid for a getMore command is currently be written to the profiler:
{
|
"op" : "getmore",
|
"ns" : "profile_getmore.test",
|
"command" : {
|
"getMore" : NumberLong("8151990459365062301"),
|
"collection" : "test",
|
"batchSize" : 2,
|
"lsid" : {
|
"id" : UUID("4c68e4d9-e098-4fde-843a-6f62e0ccfacf")
|
},
|
"$db" : "profile_getmore"
|
},
|
"originatingCommand" : {
|
"find" : "test",
|
"filter" : {
|
"a" : {
|
"$gt" : 0
|
}
|
},
|
"batchSize" : 2,
|
"sort" : {
|
"a" : 1
|
},
|
"lsid" : {
|
"id" : UUID("4c68e4d9-e098-4fde-843a-6f62e0ccfacf")
|
},
|
"$db" : "profile_getmore"
|
},
|
"cursorid" : NumberLong("8151990459365062301"),
|
"keysExamined" : 2,
|
"docsExamined" : 2,
|
"numYield" : 0,
|
"nreturned" : 2,
|
"locks" : {
|
"Global" : {
|
"acquireCount" : {
|
"r" : NumberLong(1),
|
"w" : NumberLong(1)
|
}
|
},
|
"Database" : {
|
"acquireCount" : {
|
"r" : NumberLong(1)
|
}
|
},
|
"Collection" : {
|
"acquireCount" : {
|
"r" : NumberLong(1)
|
}
|
}
|
},
|
"responseLength" : 180,
|
"protocol" : "op_msg",
|
"millis" : 0,
|
"planSummary" : "IXSCAN { a: 1 }",
|
"execStats" : {
|
"stage" : "FETCH",
|
"nReturned" : 4,
|
"executionTimeMillisEstimate" : 10,
|
"works" : 4,
|
"advanced" : 4,
|
"needTime" : 0,
|
"needYield" : 0,
|
"saveState" : 1,
|
"restoreState" : 1,
|
"isEOF" : 0,
|
"docsExamined" : 4,
|
"alreadyHasObj" : 0,
|
"inputStage" : {
|
"stage" : "IXSCAN",
|
"nReturned" : 4,
|
"executionTimeMillisEstimate" : 10,
|
"works" : 4,
|
"advanced" : 4,
|
"needTime" : 0,
|
"needYield" : 0,
|
"saveState" : 1,
|
"restoreState" : 1,
|
"isEOF" : 0,
|
"keyPattern" : {
|
"a" : 1
|
},
|
"indexName" : "a_1",
|
"isMultiKey" : false,
|
"multiKeyPaths" : {
|
"a" : [ ]
|
},
|
"isUnique" : false,
|
"isSparse" : false,
|
"isPartial" : false,
|
"indexVersion" : 2,
|
"direction" : "forward",
|
"indexBounds" : {
|
"a" : [
|
"(0.0, inf.0]"
|
]
|
},
|
"keysExamined" : 4,
|
"seeks" : 1,
|
"dupsTested" : 0,
|
"dupsDropped" : 0
|
}
|
},
|
"ts" : ISODate("2019-01-25T20:25:15.626Z"),
|
"client" : "127.0.0.1",
|
"appName" : "MongoDB Shell",
|
"allUsers" : [ ],
|
"user" : ""
|
}
|
|