How does MongoDB help you manage a huMONGOus amount of data collected through your web application? With this authoritative introduction, you'll learn the many advantages of using document-oriented databases, and discover why MongoDB is a reliable, high-performance system that allows for almost infinite horizontal scalability.

Written by engineers from 10gen, the company that develops and supports this open source database, MongoDB: The ...

See more details below
MongoDB: The Definitive Guide

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
BN.com price
(Save 43%)$31.99 List Price


How does MongoDB help you manage a huMONGOus amount of data collected through your web application? With this authoritative introduction, you'll learn the many advantages of using document-oriented databases, and discover why MongoDB is a reliable, high-performance system that allows for almost infinite horizontal scalability.

Written by engineers from 10gen, the company that develops and supports this open source database, MongoDB: The Definitive Guide provides guidance for database developers, advanced configuration for system administrators, and an overview of the concepts and use cases for other people on your project. Learn how easy it is to handle data as self-contained JSON-style documents, rather than as records in a relational database.

  • Explore ways that document-oriented storage will work for your project
  • Learn how MongoDB’s schema-free data model handles documents, collections, and multiple databases
  • Execute basic write operations, and create complex queries to find data with any criteria
  • Use indexes, aggregation tools, and other advanced query techniques
  • Learn about monitoring, security and authentication, backup and repair, and more
  • Set up master-slave and automatic failover replication in MongoDB
  • Use sharding to scale MongoDB horizontally, and learn how it impacts applications
  • Get example applications written in Java, PHP, Python, and Ruby
Read More Show Less

Product Details

  • ISBN-13: 9781449396985
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 9/8/2010
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 216
  • Sales rank: 1,347,298
  • File size: 5 MB

Meet the Author

Kristina is a software engineer who worked on the MongoDB core for five years. She led MongoDB's replica set development as well as writing the PHP and Perl drivers. She has given talks on MongoDB at meetups and conferences around the world and maintains a blog on technical topics at http://www.kchodorow.com. She currently works at Google.

Read More Show Less

Table of Contents

How This Book Is Organized;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Introduction to MongoDB;
Chapter 1: Introduction;
1.1 Ease of Use;
1.2 Easy Scaling;
1.3 Tons of Features…;
1.4 …Without Sacrificing Speed;
1.5 Let's Get Started;
Chapter 2: Getting Started;
2.1 Documents;
2.2 Collections;
2.3 Databases;
2.4 Getting and Starting MongoDB;
2.5 Introduction to the MongoDB Shell;
2.6 Data Types;
2.7 Using the MongoDB Shell;
Chapter 3: Creating, Updating, and Deleting Documents;
3.1 Inserting and Saving Documents;
3.2 Removing Documents;
3.3 Updating Documents;
3.4 Setting a Write Concern;
Chapter 4: Querying;
4.1 Introduction to find;
4.2 Query Criteria;
4.3 Type-Specific Queries;
4.4 $where Queries;
4.5 Cursors;
4.6 Database Commands;
Designing Your Application;
Chapter 5: Indexing;
5.1 Introduction to Indexing;
5.2 Using explain() and hint();
5.3 When Not to Index;
5.4 Types of Indexes;
5.5 Index Administration;
Chapter 6: Special Index and Collection Types;
6.1 Capped Collections;
6.2 Time-To-Live Indexes;
6.3 Full-Text Indexes;
6.4 Geospatial Indexing;
6.5 Storing Files with GridFS;
Chapter 7: Aggregation;
7.1 The Aggregation Framework;
7.2 Pipeline Operations;
7.3 MapReduce;
7.4 Aggregation Commands;
Chapter 8: Application Design;
8.1 Normalization versus Denormalization;
8.2 Optimizations for Data Manipulation;
8.3 Planning Out Databases and Collections;
8.4 Managing Consistency;
8.5 Migrating Schemas;
8.6 When Not to Use MongoDB;
Chapter 9: Setting Up a Replica Set;
9.1 Introduction to Replication;
9.2 A One-Minute Test Setup;
9.3 Configuring a Replica Set;
9.4 Changing Your Replica Set Configuration;
9.5 How to Design a Set;
9.6 Member Configuration Options;
Chapter 10: Components of a Replica Set;
10.1 Syncing;
10.2 Heartbeats;
10.3 Elections;
10.4 Rollbacks;
Chapter 11: Connecting to a Replica Set from Your Application;
11.1 Client-to-Replica-Set Connection Behavior;
11.2 Waiting for Replication on Writes;
11.3 Custom Replication Guarantees;
11.4 Sending Reads to Secondaries;
Chapter 12: Administration;
12.1 Starting Members in Standalone Mode;
12.2 Replica Set Configuration;
12.3 Manipulating Member State;
12.4 Monitoring Replication;
12.5 Master-Slave;
Chapter 13: Introduction to Sharding;
13.1 Introduction to Sharding;
13.2 Understanding the Components of a Cluster;
13.3 A One-Minute Test Setup;
Chapter 14: Configuring Sharding;
14.1 When to Shard;
14.2 Starting the Servers;
14.3 How MongoDB Tracks Cluster Data;
14.4 The Balancer;
Chapter 15: Choosing a Shard Key;
15.1 Taking Stock of Your Usage;
15.2 Picturing Distributions;
15.3 Shard Key Strategies;
15.4 Shard Key Rules and Guidelines;
15.5 Controlling Data Distribution;
Chapter 16: Sharding Administration;
16.1 Seeing the Current State;
16.2 Tracking Network Connections;
16.3 Server Administration;
16.4 Balancing Data;
Application Administration;
Chapter 17: Seeing What Your Application Is Doing;
17.1 Seeing the Current Operations;
17.2 Using the System Profiler;
17.3 Calculating Sizes;
17.4 Using mongotop and mongostat;
Chapter 18: Data Administration;
18.1 Setting Up Authentication;
18.2 Creating and Deleting Indexes;
18.3 Preheating Data;
18.4 Compacting Data;
18.5 Moving Collections;
18.6 Preallocating Data Files;
Chapter 19: Durability;
19.1 What Journaling Does;
19.2 Turning Off Journaling;
19.3 What MongoDB Does Not Guarantee;
19.4 Checking for Corruption;
19.5 Durability with Replication;
Server Administration;
Chapter 20: Starting and Stopping MongoDB;
20.1 Starting from the Command Line;
20.2 Stopping MongoDB;
20.3 Security;
20.4 Logging;
Chapter 21: Monitoring MongoDB;
21.1 Monitoring Memory Usage;
21.2 Calculating the Working Set;
21.3 Tracking Performance;
21.4 Monitoring Replication;
Chapter 22: Making Backups;
22.1 Backing Up a Server;
22.2 Backing Up a Replica Set;
22.3 Backing Up a Sharded Cluster;
22.4 Creating Incremental Backups with mongooplog;
Chapter 23: Deploying MongoDB;
23.1 Designing the System;
23.2 Virtualization;
23.3 Configuring System Settings;
23.4 Configuring Your Network;
23.5 System Housekeeping;
Installing MongoDB;
Choosing a Version;
Windows Install;
POSIX (Linux, Mac OS X, and Solaris) Install;
MongoDB Internals;
Wire Protocol;
Data Files;
Namespaces and Extents;
Memory-Mapped Storage Engine;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted August 1, 2011

    No text was provided for this review.

Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)