The data is stored in the document in its original size. The data and the indexes in the database are finally stored as data files. MongoDB uses a storage engine which manages this, and the presently it is the Wired Tiger Storage Engine; see Wired Tiger Storage Engine - Compression. See MongoDB Storage - FAQs for how to find the size of your collection size, and other details (specifically see the section Data Storage Diagnostics).
1 Like