The Definitive Guide To MongoDB Mongo DB
The%20Definitive%20Guide%20to%20MongoDB
The%20Definitive%20Guide%20to%20MongoDB
User Manual: Pdf
Open the PDF directly: View PDF
Page Count: 361 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- Contents at a Glance
- Contents
- About the Authors
- About the Technical Reviewer
- About the Contributor
- Acknowledgments
- Introduction
- Chapter 1: Introduction to MongoDB
- Reviewing the MongoDB Philosophy
- Fitting Everything Together
- Reviewing the Feature List
- WiredTiger
- Using Document-Oriented Storage (BSON)
- Supporting Dynamic Queries
- Indexing Your Documents
- Leveraging Geospatial Indexes
- Profiling Queries
- Updating Information In Place (Memory Mapped Database Only)
- Storing Binary Data
- Replicating Data
- Implementing Sharding
- Using Map and Reduce Functions
- The Aggregation Framework
- Getting Help
- Summary
- Chapter 2: Installing MongoDB
- Chapter 3: The Data Model
- Chapter 4: Working with Data
- Navigating Your Databases
- Inserting Data into Collections
- Querying for Data
- Using the Dot Notation
- Using the Sort, Limit, and Skip Functions
- Working with Capped Collections, Natural Order, and $natural
- Retrieving a Single Document
- Using the Aggregation Commands
- Working with Conditional Operators
- Performing Greater-Than and Less-Than Comparisons
- Retrieving All Documents but Those Specified
- Specifying an Array of Matches
- Finding a Value Not in an Array
- Matching All Attributes in a Document
- Searching for Multiple Expressions in a Document
- Retrieving a Document with $slice
- Searching for Odd/Even Integers
- Filtering Results with $size
- Returning a Specific Field Object
- Matching Results Based on the BSON Type
- Matching an Entire Array
- Using the $not Metaoperator
- Specifying Additional Query Expressions
- Leveraging Regular Expressions
- Updating Data
- Processing Data in Bulk
- Renaming a Collection
- Deleting Data
- Referencing a Database
- Implementing Index-Related Functions
- Summary
- Chapter 5: GridFS
- Chapter 6: PHP and MongoDB
- Comparing Documents in MongoDB and PHP
- MongoDB Classes
- Listing Your Data
- Using Query Operators
- Modifying Data with PHP
- Updating via update()
- Saving Time with Update Operators
- Increasing the Value of a Specific Key with $inc
- Changing the Value of a Key with $set
- Deleting a Field with $unset
- Renaming a Field with $rename
- Changing the Value of a Key During Upsert with $setOnInsert
- Appending a Value to a Specified Field with $push
- Adding Multiple Values to a Key with $push and $each
- Adding Data to an Array with $addToSet
- Removing an Element from an Array with $pop
- Removing Each Occurrence of a Value with $pull
- Removing Each Occurrence of Multiple Elements with $pullAll
- Upserting Data with save()
- Modifying a Document Atomically
- Processing Data in Bulk
- Deleting Data
- DBRef
- GridFS and the PHP Driver
- Summary
- Chapter 7: Python and MongoDB
- Working with Documents in Python
- Using PyMongo Modules
- Connecting and Disconnecting
- Inserting Data
- Finding Your Data
- Finding a Single Document
- Finding Multiple Documents
- Using Dot Notation
- Returning Fields
- Simplifying Queries with sort(), limit(), and skip()
- Aggregating Queries
- Specifying an Index with hint()
- Refining Queries with Conditional Operators
- Using the $lt, $gt, $lte, and $gte Operators
- Searching for Nonmatching Values with $ne
- Specifying an Array of Matches with $in
- Specifying Against an Array of Matches with $nin
- Finding Documents That Match an Array’s Values
- Specifying Multiple Expressions to Match with $or
- Retrieving Items from an Array with $slice
- Conducting Searches with Regular Expressions
- Modifying the Data
- Updating Your Data
- Modifier Operators
- Increasing an Integer Value with $inc
- Changing an Existing Value with $set
- Removing a Key/Value Field with $unset
- Adding a Value to an Array with $push
- Adding Multiple Values to an Array with $push and $each
- Adding a Value to an Existing Array with $addToSet
- Removing an Element from an Array with $pop
- Removing a Specific Value with $pull
- Replacing Documents with replace_one()
- Modifying a Document Atomically
- Putting the Parameters to Work
- Processing Data in Bulk
- Deleting Data
- Creating a Link Between Two Documents
- Summary
- Chapter 8: Advanced Queries
- Chapter 9: Database Administration
- Using Administrative Tools
- Backing Up the MongoDB Server
- Digging Deeper into Backups
- Restoring Individual Databases or Collections
- Automating Backups
- Backing Up Large Databases
- Importing Data into MongoDB
- Exporting Data from MongoDB
- Securing Your Data by Restricting Access to a MongoDB Server
- Protecting Your Server with Authentication
- Managing Servers
- Using MongoDB Log Files
- Validating and Repairing Your Data
- Upgrading MongoDB
- Monitoring MongoDB
- Using MongoDB Cloud Manager
- Summary
- Chapter 10: Optimization
- Optimizing Your Server Hardware for Performance
- Understanding MongoDB’s Storage Engines
- Understanding MongoDB Memory Use Under MMAPv1
- Understanding MongoDB Memory Use Under WiredTiger
- Evaluating Query Performance
- Managing Indexes
- Three-Step Compound Indexes By A. Jesse Jiryu Davis
- Specifying Index Options
- Using hint( ) to Force Using a Specific Index
- Using Index Filters
- Optimizing the Storage of Small Objects
- Summary
- Chapter 11: Replication
- Spelling Out MongoDB’s Replication Goals
- Replication Fundamentals
- Drilling Down on the Oplog
- Implementing a Replica Set
- Read Concern
- Summary
- Chapter 12: Sharding
- Index