About the Authors |
|
xiii | |
About the Technical Reviewers |
|
xv | |
Acknowledgments |
|
xvii | |
Introduction |
|
xix | |
|
Chapter 1 Introduction to MongoDB |
|
|
1 | (18) |
|
Reviewing the MongoDB Philosophy |
|
|
1 | (8) |
|
Using the Right Tool for the Right Job |
|
|
1 | (2) |
|
Lacking Innate Support for Transactions |
|
|
3 | (1) |
|
|
4 | (2) |
|
Adopting a Nonrelational Approach |
|
|
6 | (1) |
|
Opting for Performance vs. Features |
|
|
7 | (1) |
|
Running the Database Anywhere |
|
|
8 | (1) |
|
Fitting Everything Together |
|
|
9 | (2) |
|
Generating or Creating a Key |
|
|
9 | (1) |
|
|
10 | (1) |
|
|
10 | (1) |
|
|
11 | (1) |
|
Reviewing the Feature List |
|
|
11 | (6) |
|
Using Document-Oriented Storage (BSON) |
|
|
11 | (1) |
|
Supporting Dynamic Queries |
|
|
12 | (1) |
|
|
13 | (1) |
|
Leveraging Geospatial Indexes |
|
|
14 | (1) |
|
|
14 | (1) |
|
Updating Information In-Place |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
15 | (1) |
|
|
16 | (1) |
|
Using Map and Reduce Functions |
|
|
16 | (1) |
|
The MongoDB Aggregation Framework |
|
|
17 | (1) |
|
|
17 | (1) |
|
|
17 | (1) |
|
Chatting with the MongoDB Developers |
|
|
17 | (1) |
|
Cutting and Pasting MongoDB Code |
|
|
18 | (1) |
|
Finding Solutions on Google Groups |
|
|
18 | (1) |
|
Leveraging the JIRA Tracking System |
|
|
18 | (1) |
|
|
18 | (1) |
|
Chapter 2 Installing MongoDB |
|
|
19 | (18) |
|
|
19 | (1) |
|
Understanding the Version Numbers |
|
|
20 | (1) |
|
Installing MongoDB on Your System |
|
|
20 | (3) |
|
Installing MongoDB under Linux |
|
|
21 | (2) |
|
Installing MongoDB under Windows |
|
|
23 | (1) |
|
|
23 | (3) |
|
|
23 | (1) |
|
Surveying the Installation Layout |
|
|
24 | (1) |
|
|
25 | (1) |
|
Installing Additional Drivers |
|
|
26 | (10) |
|
Installing the PHP Driver |
|
|
27 | (3) |
|
Confirming That Your PHP Installation Works |
|
|
30 | (2) |
|
Installing the Python Driver |
|
|
32 | (3) |
|
Confirming That Your PyMongo Installation Works |
|
|
35 | (1) |
|
|
36 | (1) |
|
|
37 | (18) |
|
|
37 | (8) |
|
Drilling Down on Collections |
|
|
39 | (2) |
|
|
41 | (3) |
|
|
44 | (1) |
|
|
45 | (1) |
|
Impacting Performance with Indexes |
|
|
45 | (1) |
|
Implementing Geospatial Indexing |
|
|
46 | (6) |
|
Querying Geospatial Information |
|
|
47 | (5) |
|
Using MongoDB in the Real World |
|
|
52 | (1) |
|
|
53 | (2) |
|
Chapter 4 Working with Data |
|
|
55 | (46) |
|
Navigating Your Databases |
|
|
55 | (1) |
|
Viewing Available Databases and Collections |
|
|
56 | (1) |
|
Inserting Data into Collections |
|
|
56 | (2) |
|
|
58 | (20) |
|
|
60 | (2) |
|
Using the Sort, Limit, and Skip Functions |
|
|
62 | (1) |
|
Working with Capped Collections, Natural Order, and Snatural |
|
|
63 | (2) |
|
Retrieving a Single Document |
|
|
65 | (1) |
|
Using the Aggregation Commands |
|
|
65 | (3) |
|
Working with Conditional Operators |
|
|
68 | (10) |
|
Leveraging Regular Expressions |
|
|
78 | (1) |
|
|
78 | (11) |
|
|
78 | (1) |
|
Implementing an Upsert with the save() Command |
|
|
79 | (1) |
|
Updating Information Automatically |
|
|
80 | (5) |
|
Specifying the Position of a Matched Array |
|
|
85 | (1) |
|
|
86 | (2) |
|
Modifying and Returning a Document Atomically |
|
|
88 | (1) |
|
|
89 | (1) |
|
|
90 | (1) |
|
|
91 | (4) |
|
Referencing Data Manually |
|
|
91 | (2) |
|
Referencing Data with DBRef |
|
|
93 | (2) |
|
Implementing Index-Related Functions |
|
|
95 | (4) |
|
Surveying Index-Related Commands |
|
|
97 | (1) |
|
Forcing a Specified Index to Query Data |
|
|
97 | (1) |
|
Constraining Query Matches |
|
|
98 | (1) |
|
|
99 | (2) |
|
|
101 | (16) |
|
Filling in Some Background |
|
|
102 | (1) |
|
|
103 | (1) |
|
Getting Started with the Command-Line Tools |
|
|
103 | (4) |
|
|
104 | (1) |
|
|
105 | (1) |
|
Determining a File's Length |
|
|
105 | (1) |
|
|
106 | (1) |
|
|
106 | (1) |
|
|
106 | (1) |
|
Looking Under MongoDB's Hood |
|
|
107 | (4) |
|
|
109 | (1) |
|
|
110 | (1) |
|
Retrieving Files from MongoDB |
|
|
111 | (1) |
|
|
111 | (1) |
|
Exploiting the Power of Python |
|
|
111 | (2) |
|
Connecting to the Database |
|
|
112 | (1) |
|
|
113 | (1) |
|
Putting Files into MongoDB |
|
|
113 | (1) |
|
Retrieving Files from GridFS |
|
|
114 | (1) |
|
|
114 | (1) |
|
|
115 | (2) |
Index |
|
117 | |