My M10 cluster is complaining about exicding a memory limit. My collection looks like this:
{ "_id" : ObjectId("6024656264c97c56e0705cd6"), "company_id" : ObjectId("602454847756575710020545"), "email" : "xxxxx@gmail.co" }
{ "_id" : ObjectId("6024656264c97c56e0705cd7"), "company_id" : ObjectId("602454847756575710020545"), "email" : "xxxxx@gmail.com" }
And I am running this aggregation:
[
{
"$facet": {
"emails": [
{
"$project": {
_id: false,
"k": "$email",
"v": "1"
}
}
]
}
},
{
"$project": {
"emails": {
$arrayToObject: "$emails"
}
}
}
]
I understand the 100M state limit, but shouldn’t allowDiskUse:true address that? I am using mongoose and am passing that parameter like so:
Collection.aggreagate([…]).allowDiskUse(true).then(result => {…
This is a similar post here that seems to suggest that the issue has to do with the 16MB doc limit. Why, then, does is mention the “the limit of 104857600 bytes” which is about 100MB? I don’t see it complaining about 16 MB anywhere.