Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $31.99
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
2Activity

Table Of Contents

Foreword
Preface
CHAPTER 1
Introduction
A Rich Data Model
Easy Scaling
Tons of Features…
…Without Sacrificing Speed
Simple Administration
Arrays
Embedded Documents
_id and ObjectIds
CHAPTER 3
Creating, Updating, and Deleting Documents
Inserting and Saving Documents
Batch Insert
Inserts: Internals and Implications
Removing Documents
Remove Speed
Updating Documents
Document Replacement
Using Modifiers
Upserts
Updating Multiple Documents
Returning Updated Documents
The Fastest Write This Side of Mississippi
Safe Operations
Catching “Normal” Errors
Requests and Connections
CHAPTER 4
Querying
Introduction to find
Specifying Which Keys to Return
Limitations
Query Criteria
Query Conditionals
OR Queries
$not
Rules for Conditionals
Type-Specific Queries
null
Regular Expressions
Querying Arrays
Querying on Embedded Documents
$where Queries
Cursors
Limits, Skips, and Sorts
Avoiding Large Skips
Advanced Query Options
Getting Consistent Results
Cursor Internals
CHAPTER 5
Indexing
Introduction to Indexing
Scaling Indexes
Indexing Keys in Embedded Documents
Indexing for Sorts
Uniquely Identifying Indexes
Unique Indexes
Dropping Duplicates
Compound Unique Indexes
Using explain and hint
Index Administration
Changing Indexes
Geospatial Indexing
Compound Geospatial Indexes
The Earth Is Not a 2D Plane
Aggregation
count
distinct
group
Using a Finalizer
Using a Function as a Key
MapReduce
Example 1: Finding All Keys in a Collection
Example 2: Categorizing Web Pages
MongoDB and MapReduce
CHAPTER 7
Advanced Topics
Database Commands
How Commands Work
Command Reference
Capped Collections
Properties and Use Cases
Creating Capped Collections
Sorting Au Naturel
Tailable Cursors
GridFS: Storing Files
Getting Started with GridFS: mongofiles
Working with GridFS from the MongoDB Drivers
Under the Hood
Server-Side Scripting
db.eval
Stored JavaScript
Security
Database References
What Is a DBRef?
Example Schema
Driver Support for DBRefs
When Should DBRefs Be Used?
CHAPTER 8
Administration
Starting and Stopping MongoDB
Starting from the Command Line
File-Based Configuration
Stopping MongoDB
Monitoring
Using the Admin Interface
serverStatus
mongostat
Third-Party Plug-Ins
Security and Authentication
Authentication Basics
How Authentication Works
Other Security Considerations
Backup and Repair
Data File Backup
mongodump and mongorestore
fsync and Lock
Slave Backups
Repair
CHAPTER 9
Replication
Master-Slave Replication
Options
Adding and Removing Sources
Replica Sets
Initializing a Set
Nodes in a Replica Set
Failover and Primary Election
Performing Operations on a Slave
Read Scaling
Using Slaves for Data Processing
How It Works
The Oplog
Syncing
Replication State and the Local Database
Blocking for Replication
Diagnostics
Changing the Oplog Size
Replication with Authentication
CHAPTER 10
Sharding
Introduction to Sharding
Autosharding in MongoDB
When to Shard
The Key to Sharding: Shard Keys
Sharding an Existing Collection
Incrementing Shard Keys Versus Random Shard Keys
How Shard Keys Affect Operations
Setting Up Sharding
Starting the Servers
Sharding Data
Production Configuration
A Robust Config
Many mongos
A Sturdy Shard
Physical Servers
Sharding Administration
config Collections
Sharding Commands
Example Applications
Chemical Search Engine: Java
Installing the Java Driver
Using the Java Driver
Schema Design
Writing This in Java
Issues
News Aggregator: PHP
Installing the PHP Driver
Using the PHP Driver
Schema
Handling a Request
Using Analytics Data
Other Considerations
APPENDIX A
Installing MongoDB
mongo: The Shell
APPENDIX C
MongoDB Internals
Index
P. 1
MongoDB: The Definitive Guide

MongoDB: The Definitive Guide

Ratings:

3.55

(10)
|Views: 46 |Likes:

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

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

More info:

Publish date: Sep 8, 2010
Added to Scribd: Feb 10, 2011
Copyright:Traditional Copyright: All rights reservedISBN:9781449397081
List Price: $31.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

07/25/2014

216

9781449397081

$31.99

USD

pdf

You're Reading a Free Preview
Pages 9 to 23 are not shown in this preview.
You're Reading a Free Preview
Pages 40 to 181 are not shown in this preview.
You're Reading a Free Preview
Pages 190 to 205 are not shown in this preview.
You're Reading a Free Preview
Pages 214 to 216 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
albertgoldfain reviewed this
Rated 3/5
My main criticism of this book is that examples are not set up properly and none is worked out in any detail. Not bad as a whistle-stop tour of features, but online documentation is a better introduction to MongoDB.
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->