Mongodb 什么是mongo$mergeCursors?
我们在mongo日志中看到许多缓慢的查询,如下面所示(使用管道操作合并游标)。我们有一个带阴影的蒙戈,有两个只有原色的碎片。什么是合并游标命令?如果需要其他信息,请告诉我Mongodb 什么是mongo$mergeCursors?,mongodb,aggregation-framework,Mongodb,Aggregation Framework,我们在mongo日志中看到许多缓慢的查询,如下面所示(使用管道操作合并游标)。我们有一个带阴影的蒙戈,有两个只有原色的碎片。什么是合并游标命令?如果需要其他信息,请告诉我 { "_id" : ObjectId("5571b739f65f7e64bb806362"), "op" : "command", "ns" : "mongrel.$cmd", "command" : { "aggregate" : "collection1",
{
"_id" : ObjectId("5571b739f65f7e64bb806362"),
"op" : "command",
"ns" : "mongrel.$cmd",
"command" : {
"aggregate" : "collection1",
"pipeline" : [
{
"$mergeCursors" : [
{
"host" : "endpoint:27005",
"id" : NumberLong(82775337156)
}
]
}
]
},
"keyUpdates" : 0,
"numYield" : 0,
"lockStats" : {
"timeLockedMicros" : {
"r" : NumberLong(12),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(2),
"w" : NumberLong(2680)
}
},
"responseLength" : 12312,
"millis" : 6142,
"execStats" : {},
"ts" : ISODate("2015-06-05T12:35:40.801Z"),
"client" : "10.167.212.83",
"allUsers" : [],
"user" : ""
}
我最近读了这篇文章(),它似乎说这是一个内部聚合命令,用于跨碎片合并查询。请drive by downvoter解释一下原因,这样我就可以解决问题了?