最近我注意到一个参数 fromRouter" : true 存在于 mongoDB 聚合上。我搜索了 MongoDB 文档并用谷歌搜索它,但我没有找到任何相关信息。任何人都可以解释这个参数是什么,或者分享任何有用的资源?
"op" : "command",
"ns" : "database_name.$cmd",
"command" : {
"aggregate" : "collection",
"pipeline" : [...erase them to make the post smaller...],
"fromRouter" : true,
"$queryOptions" : {
"$readPreference" : {
"mode" : "primary"
}
}
},
"ntoreturn" : 1,
"keyUpdates" : 0,
"numYield" : 440,
"lockStats" : {
"timeLockedMicros" : {
"r" : NumberLong(3106252),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(5302577),
"w" : NumberLong(6145)
}
},