1. Introduction
• A Rich Data Model
• Simple Administration
• Installing MongoDB
2. Getting Started
• Documents
• Collections
• Schema-Free
• Naming
• Databases
• Getting and Starting MongoDB
• MongoDB Shell
• Running the Shell
• A MongoDB Client
• Basic Operations with the Shell
• Tips for Using the Shell
• Data Types
• Basic Data Types
• Numbers
• Dates
• Arrays
• Embedded Documents
• _id and ObjectIds
3. Creating, Updating, and Deleting Documents
• Inserting and Saving Documents
• Batch Insert
• Inserts: Internals and Implications
• Removing Documents
• Remove Speed
• Updating Documents
• Document Replacement
• Using Modifiers
• Upserts
• Updating Multiple Documents
• Returning Updated Documents
• The Fastest Write This Side of Mississippi
• Safe Operations
• Catching “Normal” Errors
• Requests and Connections
4. Querying
• Introduction to find
• Specifying Which Keys to Return
• Limitations
• Query Criteria
• Query Conditionals
• OR Queries
• $not
• Rules for Conditionals
• Type-Specific Queries
• null
• Regular Expressions
• Querying Arrays
• Querying on Embedded Documents
• $where Queries
• Cursors
• Limits, Skips, and Sorts
• Avoiding Large Skips
• Advanced Query Options
• Getting Consistent Results
• Cursor Internals
5. Indexing
• Introduction to Indexing
• Scaling Indexes
• Indexing Keys in Embedded Documents
• Indexing for Sorts
• Uniquely Identifying Indexes
• Unique Indexes
• Dropping Duplicates
• Compound Unique Indexes
• Using explain and hint
• Index Administration
• Changing Indexes
• Geospatial Indexing
• Compound Geospatial Indexes
• The Earth Is Not a 2D Plane
6. Aggregation count
• distinct
• group
• Using a Finalizer
• Using a Function as a Key
• MapReduce
• Example 1: Finding All Keys in a Collection
• Example 2: Categorizing Web Pages
• MongoDB and MapReduce
7. Administration
• Starting and Stopping MongoDB
• Starting from the Command Line
• File-Based Configuration
• Stopping MongoDB
• Monitoring
• Using the Admin Interface
• serverStatus
• mongostat
• Security and Authentication
• Authentication Basics
• How Authentication Works
• Other Security Considerations
• Backup and Repair
• Data File Backup
• mongodump and mongorestore
• fsync and Lock
• Slave Backups
• Repair
8. Example Applications
• News Aggregator: PHP
• Installing the PHP Driver
• Using the PHP Driver
• Designing the News Aggregator
• Trees of Comments
• Voting