Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Kyle Banker, Peter Bakkum, Shaun Verch, Doug Garrett, Tim Hawkins

Rating No ratings yet

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

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...
View in text
Excerpt 2
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...
View in text
Excerpt 3
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...
View in text
Excerpt 4
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...
View in text
Excerpt 5
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...
View in text
Excerpt 6
on(_id, parent_id) { ancestor_list = [] var cursor = db.categories.find({_id: parent_id}) while(cursor.size() > 0) { parent = cursor.next() ancestor_list.pus...
View in text
Excerpt 7
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...
View in text
Excerpt 8
"needTime" : 0, "needFetch" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 0, "invalidates" : 0, www.it-ebooks.info Query optimization 237 ] "executionS...
View in text
Tags
AI categories
DatabaseBackendProgramming
ISBN: 1617291609
Publish Year: 2016
Language: English
Pages: 480
File Format: PDF
File Size: 7.8 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…