Storing large file of 100 MB in Mongodb

后端 未结 2 356
说谎
说谎 2021-01-21 11:33

I want to store Large file of 100MB to 1GB in MongoDB just like BLOB object and later on can easier retrieve it. The programming language that i am using is PHP Please guide me

2条回答
  •  灰色年华
    2021-01-21 12:35

    The maximum size of a document in MongoDB 1.8 and above is 16Mb.

    Previously it was 4Mb. GridFS enables one to seamlessly spread a single file across many documents. If you inspect the actual documents in MongoDB you will notice many separate documents, but through GridFS they will seamlessly appear as a single file.

    Does that answer the question?

提交回复
热议问题