更新时间:2021-06-11 18:21:58
封面
版权信息
献辞
About Packt
Why subscribe?
Foreword
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Section 1: Essentials
Introducing MongoDB 4.x
High-level technology overview of MongoDB 4.x
Discovering what's new and different in MongoDB 4.x
Important new security enhancements
Avoiding problems when upgrading from MongoDB 3.x to 4.x
Summary
Setting Up MongoDB 4.x
Technical requirements
Installing MongoDB on a customer site
Installing MongoDB 4.x
Configuring MongoDB 4.x
Installing the PyMongo driver package
Loading the sample data
Creating the demo environment using Docker and Docker Compose
Essential MongoDB Administration Techniques
Connecting with the mongo shell
Using the Mongo shell for common database operations
Performing backup and restore operations
Performance monitoring
Section 2: Building a Database-Driven Web Application
Fundamentals of Database Design
Reviewing customer requirements
Building MongoDB document structures
Developing a corresponding Python module
Mission-Critical MongoDB Database Tasks
Creating a Connection class
Defining domain service classes
Generating a product sales report
Updating product information
Handling a customer purchase
Web application for product purchase
Canceling a purchase
Using AJAX and REST to Build a Database-Driven Website
Paginating MongoDB database queries
Handling AJAX requests
Serving binary data directly from MongoDB
Responding to REST requests
Section 3: Digging Deeper
Advanced MongoDB Database Design
Building document structures
Developing the corresponding Python entity classes
Using MongoDB with Django
Using Documents with Embedded Lists and Objects
Overview
Adding a document with embedded objects and arrays
Adding to arrays embedded within documents
Updating documents with embedded objects
Querying properties of embedded objects
Removing a document
Handling Complex Queries in MongoDB
Modeling complex queries using MongoDB Compass
Using the aggregation framework
Working with Map-Reduce functions
Handling geospatial data
Using aggregation to produce financial reports
Section 4: Replication Sharding and Security in a Financial Environment
Working with Complex Documents Across Collections
Introducing BigLittle Micro Finance Ltd.
Referencing documents across collections
Performing secondary updates
Avoiding cross-collection problems
Uploading files into GridFS
Administering MongoDB Security
Enabling database security
Understanding role-based access control
Setting up transport layer security with X.509 certificates
Developing in a Secured Environment