You are previewing NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence.

NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence

Cover of NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence by Martin Fowler... Published by Addison-Wesley Professional
O'Reilly logo

Chapter 3. More Details on Data Models

So far we’ve covered the key feature in most NoSQL databases: their use of aggregates and how aggregate-oriented databases model aggregates in different ways. While aggregates are a central part of the NoSQL story, there is more to the data modeling side than that, and we’ll explore these further concepts in this chapter.

3.1. Relationships

Aggregates are useful in that they put together data that is commonly accessed together. But there are still lots of cases where data that’s related is accessed differently. Consider the relationship between a customer and all of his orders. Some applications will want to access the order history whenever they access the customer; this fits in well with combining the ...

The best content for your career. Discover unlimited learning on demand for around $1/day.