List of Figures

 

Chapter 1. A database for the modern web

Figure 1.1. A basic relational data model for entries on a social news site. The line terminator that looks like a cross represents a one-to-one relationship, so there’s only one row from the images table associated with a row from the posts table. The line terminator that branches apart represents a one-to-many relationship, so there can be many rows in the comments table associated with a row from the posts table.

Figure 1.2. A portion of the schema for an e-commerce application. These tables facilitate dynamic attribute creation for products.

Figure 1.3. Automated failover with a replica set

Figure 1.4. Horizontal versus vertical scaling

Chapter 2. MongoDB through the JavaScript shell

Figure 2.1. MongoDB JavaScript shell on startup

Chapter 3. Writing programs using MongoDB

Figure 3.1. MongoDB object ID format

Figure 3.2. Tweet Archiver output rendered in a web browser

Chapter 6. Aggregation

Figure 6.1. Aggregation pipeline: the output of each operation is input to the next operation.

Figure 6.2. Example aggregation framework pipeline

Figure 6.3. Data model summarizing e-commerce collections and relationships

Figure 6.4. Reviews summary

Figure 6.5. Selecting targeted customers

Figure 6.6. map-reduce process

Chapter 7. Updates, atomic operations, and deletes

Figure 7.1. An initial category hierarchy

Figure 7.2. Adding a Gardening category

Figure 7.3. The category tree in its final state