MongoDb networking overhead when using official C # driver to store small files

GridFs has a default size of 256kb, but if I store many small 6kb files, would I take the overhead of a 250kb discspace pr reserved but unused file, or does GridFs pack small files into the same chunk? (I know there is some additional metadata overhead).

+3


source to share


1 answer


The same question was asked and answered by the mongodb-user group in google groups .



The last chunk of the GridFS file is as large as needed, so there is no overhead.

In your example, a 6kb file will be stored as a single 6kb block (plus metadata).

+4


source







All Articles