售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
MongoDB Cookbook Second Edition
Table of Contents
MongoDB Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Installing and Starting the Server
Introduction
Installing single node MongoDB
Getting ready
How to do it…
How it works…
See also
Starting a single node instance using command-line options
Getting ready
How to do it…
How it works…
There's more…
See also
Single node installation of MongoDB with options from the config file
Getting ready
How to do it…
How it works…
Connecting to a single node in the Mongo shell with JavaScript
Getting ready
How to do it…
How it works…
Connecting to a single node using a Java client
Getting ready
How to do it…
How it works…
Connecting to a single node using a Python client
Getting ready
How to do it…
How it works…
Starting multiple instances as part of a replica set
Getting ready
How to do it…
How it works…
There's more…
See also
Connecting to the replica set in the shell to query and insert data
Getting ready
How to do it…
How it works…
See also
Connecting to the replica set to query and insert data from a Java client
Getting ready
How to do it…
How it works…
Connecting to the replica set to query and insert data using a Python client
Getting ready
How to do it…
How it works…
Starting a simple sharded environment of two shards
Getting ready
How to do it…
How it works…
There's more…
Connecting to a shard in the shell and performing operations
Getting ready
How to do it…
How it works…
There's more…
2. Command-line Operations and Indexes
Introduction
Creating test data
Getting ready
How to do it…
How it works…
See also
Performing simple querying, projections, and pagination from Mongo shell
Getting ready
How to do it…
How it works…
Updating and deleting data from the shell
Getting ready
How to do it…
How it works…
Creating index and viewing plans of queries
Getting ready
How to do it…
How it works…
Analyzing the plan
Improving the query execution time
Improvement using indexes
Improvement using covered indexes
Some caveats of index creations
Creating a background and foreground index in the shell
Getting ready
How to do it…
How it works…
Creating and understanding sparse indexes
Getting ready
How to do it…
How it works…
Expiring documents after a fixed interval using the TTL index
Getting ready
How to do it…
How it works…
See also
Expiring documents at a given time using the TTL index
Getting ready
How to do it…
How it works…
See also
3. Programming Language Drivers
Introduction
Executing query and insert operations with PyMongo
Getting ready
How to do it…
How it works…
See also
Executing update and delete operations using PyMongo
Getting ready
How to do it…
How it works…
Implementing aggregation in Mongo using PyMongo
Getting ready
How to do it…
How it works…
Executing MapReduce in Mongo using PyMongo
Getting ready
How to do it…
How it works…
See also
Executing query and insert operations using a Java client
Getting ready
How to do it…
How it works…
See also…
Executing update and delete operations using a Java client
Getting ready
How to do it…
How it works…
See also
Implementing aggregation in Mongo using a Java client
Getting ready
How to do it…
How it works…
Executing MapReduce in Mongo using a Java client
Getting ready
How to do it…
How it works…
See also
4. Administration
Introduction
Renaming a collection
Getting ready
How to do it…
How it works…
Viewing collection stats
Getting ready
How to do it…
How it works…
See also
Viewing database stats
Getting ready
How to do it…
How it works…
How it works…
Manually padding a document
Getting ready
How to do it…
How it works…
The mongostat and mongotop utilities
Getting ready
How to do it…
How it works…
See also
Getting current executing operations and killing them
Getting ready
How to do it…
How it works…
Using profiler to profile operations
Getting ready
How to do it…
How it works…
Setting up users in Mongo
Getting ready
How to do it…
How it works…
There's more…
See also
Interprocess security in Mongo
Getting ready
How to do it…
There's more…
Modifying collection behavior using the collMod command
Getting ready
How it works…
How it works…
Setting up MongoDB as a windows service
Getting ready
How to do it…
Replica set configurations
Getting ready
Elections in a replica set
Basic configuration for a replica set
How to do it…
How it works…
Replica set member as an arbiter
Priority of replica set members
Hidden, slave delayed, and build index configuration
There's more…
Stepping down as primary from the replica set
Getting ready
How to do it…
How it works…
Exploring the local database of a replica set
Getting ready
How to do it…
How it works…
There's more…
Understanding and analyzing oplogs
Getting ready
How to do it…
How it works…
Building tagged replica sets
Getting ready
How to do it…
How it works…
WriteConcern in tagged replica sets
ReadPreference in tagged replica sets
Configuring the default shard for non-sharded collections
Getting ready
How to do it…
How it works…
Manual split and migration of chunks
Getting ready
How to do it…
How it works…
Domain-driven sharding using tags
Getting ready
How to do it…
How it works…
Exploring the config database in a sharded setup
Getting ready
How to do it…
How it works…
5. Advanced Operations
Introduction
Atomic find and modify operations
Getting ready
How to do it…
How it works…
See also
Implementing atomic counters in Mongo
Getting ready
How to do it…
How it works…
See also
Implementing server-side scripts
Getting ready
How to do it…
How it works…
Creating and tailing a capped collection cursors in MongoDB
Getting ready
How to do it…
How it works…
There's more…
Converting a normal collection to a capped collection
Getting ready
How to do it…
How it works…
There's more…
Storing binary data in Mongo
Getting ready
How to do it…
How it works…
See also
Storing large data in Mongo using GridFS
Getting ready
How to do it…
How it works…
There's more…
See also
Storing data to GridFS from Java client
Getting ready
How to do it…
How it works…
See also
Storing data to GridFS from Python client
Getting ready
How to do it…
How it works…
See also
Implementing triggers in Mongo using oplog
Getting ready
How to do it…
How it works…
Flat plane 2D geospatial queries in Mongo using geospatial indexes
Getting ready
How to do it…
How it works…
Spherical indexes and GeoJSON compliant data in Mongo
Getting ready
How to do it…
How it works…
Implementing full text search in Mongo
Getting ready
How to do it…
How it works…
There's more…
See also
Integrating MongoDB for full text search with Elasticsearch
Getting ready
How to do it…
How it works…
There's more…
See also
6. Monitoring and Backups
Introduction
Signing up for MMS and setting up an MMS monitoring agent
Getting ready
How to do it…
How it works…
There's more…
Managing users and groups in MMS console
Getting ready
How to do it…
How it works…
Monitoring instances and setting up alerts on MMS
Getting ready
How to do it…
How it works…
There's more…
See also
Setting up monitoring alerts in MMS
Getting ready
How to do it…
How it works…
See also
Back up and restore data in Mongo using out-of-the-box tools
Getting ready
How to do it…
How it works…
Configuring MMS Backup service
Getting ready
How to do it…
How it works…
Managing backups in MMS Backup service
Getting ready
How to do it…
How it works…
See also
7. Deploying MongoDB on the Cloud
Introduction
Setting up and managing the MongoLab account
How to do it…
How it works…
Setting up a sandbox MongoDB instance on MongoLab
Getting ready
How to do it…
How it works…
Performing operations on MongoDB from MongoLab GUI
Getting ready
How to do it…
How it works…
Setting up MongoDB on Amazon EC2 manually
Getting ready
How to do it…
How it works…
See also
Setting up MongoDB using the Docker containers
Getting ready
How to do it…
How it works…
See also
8. Integration with Hadoop
Introduction
Executing our first sample MapReduce job using the mongo-hadoop connector
Getting ready
How to do it…
How it works…
There's more…
See also…
Writing our first Hadoop MapReduce job
Getting ready
How to do it…
How it works…
See also
Running MapReduce jobs on Hadoop using streaming
Getting ready…
How it works…
How to do it…
Running a MapReduce job on Amazon EMR
Getting ready
How to do it…
How it works…
See also
9. Open Source and Proprietary Tools
Introduction
Developing using spring-data-mongodb
Getting ready
How to do it…
How it works…
See also
Accessing MongoDB using JPA
Getting ready
How to do it…
How it works…
See also
Accessing MongoDB over REST
Getting ready
How to do it…
How it works…
See also
Installing a GUI-based client, MongoVUE, for MongoDB
Getting ready
How to do it…
How it works…
There's more…
See also
A. Concepts for Reference
Write concern and its significance
Setting up a replica set
Read preference for querying
Knowing the internals
Index
买过这本书的人还买过
读了这本书的人还在读