user1742919
user1742919

Reputation: 401

Are workarounds available for the MongoDB 16MB file size limitation?

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

Answers (1)

Rubin Porwal
Rubin Porwal

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

Related Questions