I read somewhere a while ago that it would be possible to use 32 MB per document in the future ? Does anybody know when is this going to happen ? Or is it possible already ?
Thanks!
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. To store documents larger than the maximum size, MongoDB provides the GridFS API.
As you know, MongoDB stores data in a document. The limit for one document is 16Mb. You can also use GridFS to store large files that can exceed 16Mb. It will store them in multiple chunks.
In MongoDB, the limit() method limits the number of records or documents that you want. It basically defines the max limit of records/documents that you want. Or in other words, this method uses on cursor to specify the maximum number of documents/ records the cursor will return.
Because of these distinctive requirements, NoSQL (non-relational) databases, such as MongoDB, are a powerful choice for storing big data.
For the moment the limit size to a document is setted to 16 mb.
If you need to store biggest data (and not as document) you can use GridFS inside MongoDB.
Currently it doesn't look like it's going to get raised to 32MB. In this and this Jira issues you can see that no plans currently exist to raise the limit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With