MongoDB Schema Design: Embed or Reference?
"Schemaless" doesn't mean "no design". In MongoDB, schema design starts from one question: what does the application read together? Embed when data is read together and owned by the parent { "_id": "ord_42", "customerId": 7, "status": "paid", "shippingAddress"...