Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
About the Cover Illustration
1. Getting started
Chapter 1. A database for the modern web
1.1. Born in the cloud
1.2. MongoDB’s key features
1.2.1. The document data model
1.2.2. Ad hoc queries
1.2.3. Secondary indexes
1.2.4. Replication
1.2.5. Speed and durability
1.2.6. Scaling
1.3. MongoDB’s core server and tools
1.3.1. The core server
1.3.2. The JavaScript shell
1.3.3. Database drivers
1.3.4. Command-line tools
1.4. Why MongoDB?
1.4.1. MongoDB versus other databases
1.4.2. Use cases and production deployments
1.5. Tips and limitations
1.6. Summary
Chapter 2. MongoDB through the JavaScript shell
2.1. Diving into the MongoDB shell
2.1.1. Starting the shell
2.1.2. Inserts and queries
2.1.3. Updating documents
2.1.4. Deleting data
2.2. Creating and querying with indexes
2.2.1. Creating a large collection
2.2.2. Indexing and explain()
2.3. Basic administration
2.3.1. Getting database information
2.3.2. How commands work
2.4. Getting help
2.5. Summary
Chapter 3. Writing programs using MongoDB
3.1. MongoDB through the Ruby lens
3.1.1. Installing and connecting
3.1.2. Inserting documents in Ruby
3.1.3. Queries and cursors
3.1.4. Updates and deletes