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 to WeChat Moments
MongoDB in Action Covers MongoDB version 3.0 (Kyle Banker, Peter Bakkum, Shaun Verch etc.)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
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
这本书是《MongoDB in Action》的第二版,经过全面修订和更新,围绕 MongoDB 3.0 展开,系统介绍面向文档的数据库模型。它兼顾两个层面的读者:既给出开发者需要把握的整体图景,也保留足够的底层细节,供系统工程师深入理解数据库的行为。全书从文档模型的基本理念讲起,说明这种以文档为中心的组织方式与关系型数据库的差异,以及它能带来哪些实际好处。
读者可以抓住几条主要线索。其一是查询与选择器:调用 find 方法时可以传入简单的查询选择器,选择器本身是一个文档,用来与集合中的所有文档进行匹配,例如要查找用户名为 jones 的文档,就按这一条件构造选择器。其二是数据建模的思路:书中以购物车为例,说明如何用文档描述其中的商品,收货地址属性指向一个包含地址字段的单一对象,这种表示方式具有若干优势;评论与产品的关系也展示了建模的考量,一条评论对应一个产品,一条评论又可能关联多个表示投票者的对象,记录谁认为该评论有帮助,这样的模型在特定场景下尤其有用。其三是更新操作的行为:更新默认只作用于查询选择器匹配到的第一个文档,若要更新所有匹配文档,必须显式指定多文档更新,在 shell 中通过添加 multi 参数来表达。其四...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment