Summary
MongoDB in Action, Second Edition is a completely revised and updated version. It introduces MongoDB 3.0 and the document-oriented database model. This perfectly paced book gives you both the big picture you'll need as a developer and enough low-level detail to satisfy system engineers.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
This document-oriented database was built for high availability, supports rich, dynamic schemas, and lets you easily distribute data across multiple servers. MongoDB 3.0 is flexible, scalable, and very fast, even with big data loads.
About the Book
MongoDB in Action, Second Edition is a completely revised and updated version. It introduces MongoDB 3.0 and the document-oriented database model. This perfectly paced book gives you both the big picture you'll need as a developer and enough low-level detail to satisfy system engineers. Lots of examples will help you develop confidence in the crucial area of data modeling. You'll also love the deep explanations of each feature, including replication, auto-sharding, and deployment.
What's Inside
Indexes, queries, and standard DB operations
Aggregation and text searching
Map-reduce for custom aggregations and reporting
Deploying for scale and high availability
Updated for Mongo 3.0
About the Reader
Written for developers. No previous MongoDB or NoSQL experience is assumed.
About the Authors
After working at MongoDB, Kyle Banker is now at a startup. Peter Bakkum is a developer with MongoDB expertise. Shaun Verch has worked on the core server team at MongoDB. A Genentech engineer, Doug Garrett is one of the winners of the MongoDB Innovation Award for Analytics. A software architect, Tim Hawkins has led search engineering at Yahoo Europe. Technical Contributor: Wouter Thielen. Technical Editor: Mihalis Tsoukalos.
Table of Contents
PART 1 GETTING STARTED
A database for the modern web
MongoDB through
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A practical, developer-first guide to MongoDB 3.0 that takes you from the document model and shell basics through queries, aggregation, indexing, and production deployment. Best for application developers and system engineers who want both the big picture and enough low-level detail to run MongoDB confidently.
【Book Arc】
- **Opening (~0%–10%)**: Frames MongoDB as a document-oriented database for the modern web, contrasting it with fixed-schema relational designs and introducing the shell, drivers, and core server tools.
- **Early (~10%–30%)**: Hands-on shell work — inserting and querying documents, using query predicates and operators, running database commands, and reading `explain` output to understand query behavior.
- **Early–Middle (~30%–45%)**: Moves into writing programs against MongoDB via language drivers, then into document-oriented data modeling, including schema-design principles and special collection types like capped and TTL collections.
- **Middle (~45%–60%)**: Deepens query construction with an e-commerce data model, covering selectors, ranges, ordering, projections, and the broader query language.
- **Late (~60%–85%)**: Covers aggregation, text search, and map-reduce for custom reporting, plus indexing strategies that make these operations efficient.
- **Ending (~85%–100%)**: Turns to operations at scale — replication, auto-sharding, and deployment for high availability, updated for MongoDB 3.0.
【Key Takeaways】
- **MongoDB’s core unit is the BSON document, not the row** (Early): This shapes everything — schema design, queries, and how you model one-to-many relationships as embedded subdocuments rather than joins.
- **Schema design starts from application access patterns** (Middle): The book stresses that read/write ratio, query complexity, and data volume should drive modeling decisions, and that MongoDB isn’t right for every application.
- **The shell is a serious working tool, not a toy** (Early): You can insert, query, run administrative commands, inspect method internals, and use tab completion and built-in help to explore the database interactively.
- **Database commands are queries against a special `$cmd` collection** (Early): Understanding this demystifies `runCommand()` and helps you reason about what the server is actually doing.
- **Query selectivity and indexes determine performance** (Middle): Operators like `$ne` and `$nin` are less selective, and `explain("executionStats")` is the tool for seeing how a query really executes.
- **Special collection types solve specific problems** (Middle): Capped collections suit logging with fixed size or document limits, while TTL indexes expire documents automatically — each with its own operational restrictions.
- **Aggregation, text search, and map-reduce cover reporting needs** (Late): These features let you go beyond simple finds for custom aggregations and search without leaving MongoDB.
- **Scale and availability are deployment concerns, not afterthoughts** (Ending): Replication and auto-sharding are presented as first-class topics so you can plan for high availability and horizontal growth.
【Reading Tips】
- **Deep-read the data modeling and query chapters**: These are the highest-leverage sections for day-to-day development and where the book’s examples pay off most.
- **Skim the version-history and shell-internals material on a first pass**: Useful context, but you can return to it when you need to debug or administer a cluster.
- **Type the shell examples yourself**: The book is example-driven; running queries and reading `explain` output builds intuition faster than reading alone.
- **Treat the deployment chapters as a checklist**: Note replication and sharding concepts even if you’re not operating a cluster yet — they inform schema and index choices early.
- **Watch for “gotchas” in the document-data section**: The book flags limitations and obscure features worth revisiting when you hit real-world edge cases.
【Coverage Limits】
The excerpts cover the book’s structure, shell usage, querying, schema design, special collections, and high-level deployment topics, but do not provide detailed chapter-by-chapter content for aggregation, text search, map-reduce, or the full replication and sharding chapters.
Excerpt 1
f the winners of the MongoDB Innovation Award for Analytics. A software architect, Tim Hawkins has led search engineering at Yahoo Europe. Technical Contribu...
ou can also pass a simple query selector to the find method. A query selector is a document that’s used to match against all documents in the collection. To...
still depends on what we put in the connect.rb script above because it expects the MongoDB connection to be in $client. The response is a Ruby hash listing a...
ate an index on time_field. This field will be periodically checked for a timestamp value, which is compared to the current time. If the difference www.it-eb...
iews and that a review is for one product. You can also see that a review may have many voter_id objects related to it, showing who has voted that the review...
tions, the cost of indexes is almost always justified. Just realize that indexes do impose a cost and that they therefore must be chosen with care. This mean...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
MongoDB in Action Covers MongoDB version 3.0 (Kyle Banker, Peter Bakkum, Shaun Verch etc.)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
MongoDB in Action Covers MongoDB version 3.0 (Kyle Banker, Peter Bakkum, Shaun Verch etc.)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment