Reputation: 401
I'm using aggregate query which results more than 16MB so query is failing in MongoDB.
I KNOW THIS IS EXISTING/ALREADY KNOWN ISSUE.
However, I don't understand what workarounds are alternatives may be available. How can I avoid the impact of this issue?
Upvotes: 1
Views: 1011
Reputation: 3845
According to MongoDB documentation
The maximum BSON document size is 16 megabytes. The maximum document size helps ensure that a single document cannot use excessive amount of RAM or, during transmission, excessive amount of bandwidth.
In newer versions MongoDB aggregate operation returns cursor to overcome limitation of max document size and result of any size as in previous versions results were returned in single document.
Upvotes: 1