When you create a collection in Mongo, a primary key _id representing the document id is created along side a B+Tree index so that search is optimal. and its an 12 byte field.
when data is stored as document we have an advantage of space locality while querying complete set of data.
- Indexing
- Data storage patterns
- Data types supported