Cargando…

MongoDB Cookbook : over 80 practical recipes to design, deploy, and administer MongoDB /

If you want a reference to show you practical solutions, or just want to satisfy your need for more knowledge of this fantastic NoSQL database, then this book is ideal for you. To get the most out of this book, you should know the basics of MongoDB.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Nayak, Amol (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, [2014]
Colección:Quick answers to common problems
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Installing and Starting the MongoDB Server; Introduction; Single node installation of MongoDB; Starting a single node instance using command-line options; Single node installation of MongoDB with options from the config file; Connecting to a single node from the Mongo shell with a preloaded JavaScript; Connecting to a single node from a Java client; Starting multiple instances as part of a replica set; Connecting to the replica set from the shell to query and insert data
  • Connecting to the replica set to query and insert data from a Java clientStarting a simple sharded environment of two shards; Connecting to a shard from the Mongo shell and performing operations; Chapter 2: Command-line Operations and Indexes; Creating test data; Performing simple querying, projections, and pagination from the Mongo shell; Updating and deleting data from the shell; Creating an index and viewing plans of queries; Background and foreground index creation from the shell; Creating unique indexes on collection and deleting the existing duplicate data automatically
  • Creating and understanding sparse indexesExpiring documents after a fixed interval using the TTL index; Expiring documents at a given time using the TTL index; Chapter 3: Programming Language Drivers; Introduction; Installing PyMongo; Executing query and insert operations using PyMongo; Executing update and delete operations using PyMongo; Aggregation in Mongo using PyMongo; MapReduce in Mongo using PyMongo; Executing query and insert operations using a Java client; Executing update and delete operations using a Java client; Aggregation in Mongo using a Java client
  • MapReduce in Mongo using a Java clientChapter 4: Administration; Renaming a collection; Viewing collection stats; Viewing database stats; Disabling the preallocation of data files; Manually padding a document; Understanding the mongostat and mongotop utilities; Estimating the working set; Viewing and killing the currently executing operations; Using profiler to profile operations; Setting up users in MongoDB; Understanding interprocess security in MongoDB; Modifying collection behavior using the collMod command; Setting up MongoDB as a Windows Service; Configuring a replica set
  • Stepping down as a primary instance from the replica setExploring the local database of a replica set; Understanding and analyzing oplogs; Building tagged replica sets; Configuring the default shard for nonsharded collections; Manually splitting and migrating chunks; Performing domain-driven sharding using tags; Exploring the config database in a sharded setup; Chapter 5: Advanced Operations; Introduction; Atomic find and modify operations; Implementing atomic counters in MongoDB; Implementing server-side scripts; Creating and tailing capped collection cursors in MongoDB