万本电子书0元读

万本电子书0元读

顶部广告

MongoDB Cookbook - Second Edition电子书

售       价:¥

11人正在读 | 0人评论 9.8

作       者:Cyrus Dasadia

出  版  社:Packt Publishing

出版时间:2016-01-13

字       数:262.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Harness the latest features of MongoDB 3 with this collection of 80 recipes – from managing cloud platforms to app development, this book is a vital resourceAbout This BookGet to grips with the latest features of MongoDB 3Interact with the MongoDB server and perform a wide range of query operations from the shellFrom administration to automation, this cookbook keeps you up to date with the world’s leading NoSQL databaseWho This Book Is ForThis book is engineered for anyone who is interested in managing data in an easy and efficient way using MongoDB. You do not need any prior knowledge of MongoDB, but it would be helpful if you have some programming experience in either Java or Python.What You Will LearnInstall, configure, and administer MongoDB sharded clusters and replica setsBegin writing applications using MongoDB in Java and Python languagesInitialize the server in three different modes with various configurationsPerform cloud deployment and introduce PaaS for MongoDiscover frameworks and products built to improve developer productivity using MongoTake an in-depth look at the Mongo programming driver APIs in Java and PythonSet up enterprise class monitoring and backups of MongoDBIn DetailMongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of the systems that power many different organizations – it’s easy to see why it’s the most popular NoSQL database on the market. Packed with many features that have become essential for many different types of software professionals and incredibly easy to use, this cookbook contains many solutions to the everyday challenges of MongoDB, as well as guidance on effective techniques to extend your skills and capabilities.This book starts with how to initialize the server in three different modes with various configurations. You will then be introduced to programming language drivers in both Java and Python. A new feature in MongoDB 3 is that you can connect to a single node using Python, set to make MongoDB even more popular with anyone working with Python. You will then learn a range of further topics including advanced query operations, monitoring and backup using MMS, as well as some very useful administration recipes including SCRAM-SHA-1 Authentication. Beyond that, you will also find recipes on cloud deployment, including guidance on how to work with Docker containers alongside MongoDB, integrating the database with Hadoop, and tips for improving developer productivity.Created as both an accessible tutorial and an easy to use resource, on hand whenever you need to solve a problem, MongoDB Cookbook will help you handle everything from administration to automation with MongoDB more effectively than ever before.Style and approachEvery recipe is explained in a very simple set-by-step manner yet is extremely comprehensive.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部