Google News
logo
MongoDB - Interview Questions
Explain GridFS in MongoDB?
GridFS stores and retrieves large files like images, audio and video files etc. Although the limit to store a file is 16MB, GridFS can store files with size greater than that. GridFS breaks the file into chunks and stores each chunk as a different document of maximum size 255k. It uses two collections, fs.chunks and fs.files for storing chunks and metadata, respectively.
Advertisement