MongoDB 4 Quick Start Guide
Doug Bierer更新时间:2021-08-13 15:25:33
最新章节:Leave a review - let other readers know what you think封面
Title Page
Copyright and Credits
MongoDB 4 Quick Start Guide
Dedication
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Introducing MongoDB
Overview of MongoDB
Handling big data
Modeling objects without SQL
Installing MongoDB
Installing MongoDB on Windows
Download and install
MongoDB Compass
MongoDB Windows file locations
Installing MongoDB on Linux
Installing on Debian or Ubuntu Linux
Package installation
Configure and run MongoDB on Ubuntu/Debian
Installing on Red Hat Fedora or CentOS Linux
Package installation
Configure and run MongoDB on RHEL/Fedora/CentOS
Installing from source
Summary
Understanding MongoDB Data Structures
What is NoSQL?
Documents collections and database
Data-modeling considerations
References
Embedded documents
Document design
Creating a MongoDB database and collection
Summary
Using the MongoDB Shell
Overview
Why use the mongo shell?
Options when invoking the shell
.mongorc.js File
Informational commands
Performing simple queries
Defining a query filter
Defining a projection
Modifying the cursor
Database and collection operations
Working with databases
Working with collections
Creating updating or deleting documents
Creating one or more documents
Updating one or more documents
Deleting one or more documents
Creating and running shell scripts
Running a direct command
Running a shell script
Summary
Developing with Program Language Drivers
Overview of the MongoDB PHP driver
MongoDB PHP architecture
MongoDB PHP extension classes
MongoDB\Driver classes
MongoDB\BSON classes
MongoDB\Driver\ {Exception Monitoring} classes
Installing the MongoDB PHP extension
ext/mongodb installation using PECL
ext/mongodb installation on Windows
Installing the PHP library for MongoDB (PHPLIB)
Performing CRUD operations using PHPLIB
Core PHPLIB class instances needed for CRUD operations
Creating documents
Reading documents
Searching by ObjectId
Updating documents
Deleting documents
Other libraries and framework integration
Summary
Building Complex Queries Using Aggregation
An overview of aggregation
What is aggregation?
Why use aggregation?
Using single-purpose aggregation
Using the aggregation pipeline
Aggregation pipeline stages
$bucket
$group
$lookup
$match
Aggregation pipeline expression operators
Aggregation pipeline accumulators
$group stage accumulators
$project and $addFields stage accumulators
Aggregation pipeline expression operator examples
Using map-reduce
Using the MongoDB Compass aggregation pipeline builder
Summary
Maintaining MongoDB Performance
Indexes
Single field indexes
Compound indexes
Multi-key indexes
Simple backup and restore
mongodump
mongorestore
Replication
Understanding MongoDB replication
Deploying a replica set
Resetting the IP address
Configuring the replica set member
Initializing the replica set
Adding and removing members
Removing a member from a replica set
Adding a member to a replica set
Sharding
Understanding sharding
Choosing a shard key
Sharding strategies
Ranged sharding
Hashed sharding
Deploying a sharded cluster
Summary
Securing MongoDB
MongoDB security overview
Transport Layer Security
Changes in MongoDB v4.0
x.509 certificates
Configuring mongod to use TLS
Authentication
SCRAM
Mongo shell authentication using SCRAM
Internal communication using SCRAM
x.509 authentication
Mongo shell authentication using x.509
Internal authentication using x.509
Kerberos
LDAP
Access control
Initializing security
Database privilege actions
CRUD privilege actions
Database management privilege actions
Infrastructure privilege actions
Role-based access control
Built-in roles
Custom roles
Database user administration
Summary
Getting from a Web Form to MongoDB
Building the application
Defining the initial view
Defining the Add Purchase view
Defining the JSON response script
Defining the Connection class
Defining the service classes
Application\Base
Application\Main
Application\Lookup
Application\Add
Configuring transaction support
Adding security
Summary
Using Docker
Using MongoDB with Docker
Other Books You May Enjoy
Leave a review - let other readers know what you think
更新时间:2021-08-13 15:25:33