我目前使用的是mongoDb v4.4和Monosev5.10。并在我的聚合查询中通过$facet获取极限超出错误,它使用allowDiskUse: true选项提供了非常多的响应。MongoError: document constructed by $facet is 104859602 bytes, which exceeds the limit of 104857600 bytes
它的工作很好,直到我在mongoDb v3.4和蒙鹅v4.13
,"timeStamp": "2015-11-23T01:58:52.084Z"我想要应用一个聚合函数来获取1天内"ObjectTemp“值大于10且小于10的文档计数。我使用下面的查询来获得结果。(src/mongo/shell/assert.js:254:5)
at DBCollection.aggregat
我正在为我的项目使用Go和MongoDB。db.collection.aggregate([{$match:{}},{$lookup:{}},{$addFields:{}}]) 它在MongoDB中工作得很好,但是当我在Go中使用管道时,它给出了以下错误The 'cursor' option is required, except for aggregate with the explain argument Go代码是 matchStage:=bson.M