When you need to access a portion of a large file without loading the whole file. If your file system has limits on the number of files. The GridFS bucket is by default named fs. When we create a GridFS bucket, it automatically creates the collection files and chunks within the bucket. GridFS has these collections:Ĭhunks - (this stores binary file chunks) GridFS stores files in buckets, which is a group of MongoDB collections consisting of file chunks and file information. GridFS divides the file into chunks and then stores them in the database. Instead, MongoDB has a functionality specifically for storing large files and it goes by the name GridFS. ![]() We often need to store files in our databases, but mongoDB doesn’t let you store any file larger than 16 Mb in a normal document.
0 Comments
Leave a Reply. |