Book description
Learn how to deploy and monitor databases in the cloud, manipulate documents, visualize data, and build applications running on MongoDB using Node.js
Key Features
- Learn the fundamentals of NoSQL databases with MongoDB
- Create, manage, and optimize a MongoDB database in the cloud using Atlas
- Use a real-world dataset to gain practical experience of handling big data
Book Description
MongoDB is one of the most popular database technologies for handling large collections of data. This book will help MongoDB beginners develop the knowledge and skills to create databases and process data efficiently.
Unlike other MongoDB books, MongoDB Fundamentals dives into cloud computing from the very start – showing you how to get started with Atlas in the first chapter. You will discover how to modify existing data, add new data into a database, and handle complex queries by creating aggregation pipelines. As you progress, you'll learn about the MongoDB replication architecture and configure a simple cluster. You will also get to grips with user authentication, as well as techniques for backing up and restoring data. Finally, you'll perform data visualization using MongoDB Charts.
You will work on realistic projects that are presented as bitesize exercises and activities, allowing you to challenge yourself in an enjoyable and attainable way. Many of these mini-projects are based around a movie database case study, while the last chapter acts as a final project where you will use MongoDB to solve a real-world problem based on a bike-sharing app.
By the end of this book, you'll have the skills and confidence to process large volumes of data and tackle your own projects using MongoDB.
What you will learn
- Set up and use MongoDB Atlas on the cloud
- Insert, update, delete, and retrieve data from MongoDB
- Build aggregation pipelines to perform complex queries
- Optimize queries using indexes
- Monitor databases and manage user authorization
- Improve scalability and performance with sharding clusters
- Replicate clusters, back up your database, and restore data
- Create data-driven charts and reports from real-time data
Who this book is for
This book is designed for people who are new to MongoDB. It is suitable for developers, database administrators, system administrators, and cloud architects who are looking to use MongoDB for smooth data processing in the cloud. Although not necessary, basic knowledge of a general programming language and experience with other databases will help you grasp the topics covered more easily.
Table of contents
- MongoDB Fundamentals
- Preface
-
1. Introduction to MongoDB
- Introduction
- Database Management Systems
- Introduction to MongoDB
- MongoDB Editions
- The MongoDB Deployment Model
- Managing MongoDB
- MongoDB Atlas
-
MongoDB Atlas Organizations, Projects, Users, and Clusters
- Organizations
- Exercise 1.02: Setting Up a MongoDB Atlas Organization
- Projects
- Exercise 1.03: Creating a MongoDB Atlas Project
- MongoDB Clusters
- Exercise 1.04: Setting Up Your First Free MongoDB Cluster on Atlas
- Connecting to Your MongoDB Atlas Cluster
- MongoDB Elements
- Documents
- Document Structures
- Collections
- Understanding MongoDB Databases
- Creating a Database
- Creating a Collection
- Creating a Collection Using Document Insertion
- Creating Documents
- Activity 1.01: Setting Up a Movies Database
- Summary
- 2. Documents and Data Types
- 3. Servers and Clients
-
4. Querying Documents
- Introduction
- MongoDB Query Structure
- Basic MongoDB Queries
- Conditional Operators
- Logical Operators
- Regular Expressions
- Query Arrays and Nested Documents
- Limiting, Skipping, and Sorting Documents
- Summary
- 5. Inserting, Updating, and Deleting Documents
-
6. Updating with Aggregation Pipelines and Arrays
- Introduction
- Updating Array Fields
- Summary
- 7. Data Aggregation
-
8. Coding JavaScript in MongoDB
- Introduction
- Connecting to the Driver
- Executing Simple Queries
- Callbacks and Error Handling in Node.js
- Callbacks in Node.js
-
Advanced Queries
- Inserting Data with the Node.js Driver
- Updating and Deleting Data with the Node.js Driver
- Writing Reusable Functions
- Exercise 8.04: Updating Data with the Node.js Driver
- Reading Input from the Command Line
- Creating an Interactive Loop
- Exercise 8.05: Handling Inputs in Node.js
- Activity 8.01: Creating a Simple Node.js Application
- Summary
-
9. Performance
- Introduction
- Query Analysis
- Introduction to Indexes
- Creating and Listing Indexes
- Query Analysis after Indexes
- Hiding and Dropping Indexes
- Type of Indexes
-
Properties of Indexes
- Unique Indexes
- Exercise 9.03: Creating a Unique Index
- TTL Indexes
- Exercise 9.04: Creating a TTL index using Mongo Shell
- Sparse Indexes
- Exercise 9.05: Creating a Sparse Index Using Mongo Shell
- Partial Indexes
- Exercise 9.06: Creating a Partial Index Using the Mongo Shell
- Case-Insensitive Indexes
- Exercise 9.07: Creating a Case-Insensitive Index Using the Mongo Shell
- Other Query Optimization Techniques
- Summary
- 10. Replication
- 11. Backup and Restore in MongoDB
-
12. Data Visualization
-
Introduction
- Exploring Menus and Tabs
- Dashboards
- Data Sources
- Exercise 12.01: Working with Data Sources
- Data Source Permissions
- Building Charts
- Types of Charts
- Bar and Column Charts
- Exercise 12.02: Creating a Bar Chart to Display Movies
- Circular Charts
- Exercise 12.03: Creating a Pie Chart Graph from the Movies Collection
- Geospatial Charts
- Exercise 12.04: Creating a Geospatial Chart
- Complex Charts
- Channels
- Integration
- Summary
-
Introduction
- 13. MongoDB Case Study
-
Appendix
- 1. Introduction to MongoDB
- 2. Documents and Data Types
- 3. Servers and Clients
- 4. Querying Documents
- 5. Inserting, Updating, and Deleting Documents
- 6. Updating with Aggregation Pipelines and Arrays
- 7. Data Aggregation
- 8. Coding JavaScript in MongoDB
- 9. Performance
- 10. Replication
- 11. Backup and Restore in MongoDB
- 12. Data Visualization
Product information
- Title: MongoDB Fundamentals
- Author(s):
- Release date: December 2020
- Publisher(s): Packt Publishing
- ISBN: 9781839210648
You might also like
book
MongoDB in Action, Second Edition
GET MORE WITH MANNING An eBook copy of the previous edition, MongoDB in Action (First Edition), …
video
MongoDB Administration
MongoDB is a very popular open source cross-platform document-oriented database program. This comprehensive tutorial is your …
book
MongoDB 4 Quick Start Guide
A fast paced guide that will help you to create, read, update and delete data using …
book
Mastering MongoDB 4.x - Second Edition
Leverage the power of MongoDB 4.x to build and administer fault-tolerant database applications Key Features Master …