Contents
preface
acknowledgments
about this book
about the cover illustration
Part 1 Getting started
Chapter 1 A database for the modern web
Born in the cloud
MongoDB’s key features
MongoDB’s core server and tools
Why MongoDB?
Tips and limitations
Summary
Chapter 2 MongoDB through the JavaScript shell
Diving into the MongoDB shell
Creating and querying with indexes
Basic administration
Getting help
Summary
Chapter 3 Writing programs using MongoDB
MongoDB through the Ruby lens
How the drivers work
Building a simple application
Summary
Part 2 Application development in MongoDB
Chapter 4 Document-oriented data
Principles of schema design
Designing an e-commerce data model
Nuts and bolts: on databases, collections, and documents
Summary
Chapter 5 Queries and aggregation
E-commerce queries
MongoDB’s query language
Aggregating orders
Aggregation in detail
Summary
Chapter 6 Updates, atomic operations, and deletes
A brief tour of document updates
E-commerce updates
Atomic document processing
Nuts and bolts: MongoDB updates and deletes
Summary
Part 3 MongoDB mastery
Chapter 7 Indexing and query optimization
Indexing theory
Indexing in practice
Query optimization
Summary
Chapter 8 Replication
Replication overview
Replica sets
Master-slave replication
Drivers and replication
Summary
Chapter 9 Sharding
Sharding overview
A sample shard cluster
Querying and indexing a shard cluster
Choosing a shard key
Sharding in production
Summary
Chapter 10 Deployment and administration
Deployment
Monitoring and diagnostics
Maintenance
Performance troubleshooting
Summary
 
appendix A Installation
appendix B Design patterns
appendix C Binary data and GridFS
appendix D MongoDB in PHP, Java, and C++
appendix E Spatial indexing
index