Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB - 32 MB document size limit possible now?

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!

like image 686
user315648 Avatar asked Nov 10 '11 13:11

user315648


People also ask

What is the maximum document size in MongoDB at present?

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.

Can we increase document size in MongoDB?

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.

What is limit in MongoDB?

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.

Can MongoDB handle big data?

Because of these distinctive requirements, NoSQL (non-relational) databases, such as MongoDB, are a powerful choice for storing big data.


2 Answers

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.

like image 169
Aurélien B Avatar answered Sep 28 '22 09:09

Aurélien B


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.

like image 36
Lycha Avatar answered Sep 28 '22 08:09

Lycha