A couple of months ago I launched a web application for a customer using mongodb for the first time. One of the collections can have documents that store a single .pdf file in binary format. The size of the .pdf file that gets stored in the document is always around 7mb.
To my surprise, the documents that do contain the .pdf files seem to be taking up double the space. As it stands the collection size is at 70gb with only 3900 documents containing the 7mb .pdf file. How can that be, please help?