课程: Advanced MongoDB: Efficient and Secure Data Management

今天就学习课程吧!

今天就开通帐号,24,100 门业界名师课程任您挑!

GridFS

GridFS

- [Instructor] GridFS is a specification for storing and retrieving large files inside MongoDB. Generally, GridFS is used for files that are bigger than MongoDB's 16 megabyte size limit for documents. However, it sometimes can also be useful to use it for slightly smaller but still large files. That is the case when you access data most often in a way that only requires access to a part of a file. And you don't want the database to pull the whole file into memory each time you access the file. GridFS deconstructs a big document into many small parts called chunks. The default size of each chunk is 255 kilobytes and all of the chunks created from that one big document are 255 kilobytes, except for the last one, which is only as big as it needs to be to store the last bit of data. For large files, you can increase the chunk size to one megabyte or higher. This will make it a lot faster to reassemble files. So GridFS turns…

内容