Audience
This course is aimed at application developers who wish to use MongoDB to store, access and edit data.
Prerequisites
An understanding of programming and database principles would be beneficial.
Duration
2 days. Hands on.
Course Objectives
The MongoDB Essentials course is designed to give delegates experience of installing and using the MongoDB database. This hands-on course introduces delegates to the concept of a document- oriented database then shows how to set up MongoDB for use. Delegates use the built-in shell and various APIs to build a database access application and manipulate data. We also investigate optimising queries using indexes and aggregating data with MongoDB functions.
The delegate will learn and acquire skills as follows:
- Database installation and setup
- Document based data modelling
- Creating document collections
- CRUD operations with the Mongo shell
- Aggregation pipelines
- MongoDB transactions
- MongoDB access using programming languages
- Creating indexes
By the end of the course delegates should be able to:
- Install the MongoDB database
- Use the MongoDB shell to access the database
- Create, retrieve, update and delete data
- Use aggregation queries
- Appreciate the APIs used to interface with MongoDB
- Understand the document based structure of the database
- Use an API to develop applications
- Optimise queries with indexes
Course Content
Course Introduction
Administration and Course Materials
Course Structure and Agenda
Delegate and Trainer Introductions
Session 1: INTRODUCTION
What are NoSQL Databases?
Common Database Features
NoSQL Versus Relational Approach
Types of NoSQL Databases
Data Storage
Transaction Handling
Key Features
MongoDB Latest and Previous versions: Differences
Session 2: INSTALLING MONGODB
Downloading in the Required Software
Installing MongoDB & Configuration in Enterprise settings
Securing the Installation
Session 3: DATA MODELLING AND DESIGN
Data Storage
Working with Datatypes
Collections
Document Datatypes
Creating _id Fields
Session 4: QUERYING DATA
Databases and Collections
Querying Collections
Working with Operators
Referencing a Database
Querying Dates
Session 5: MANIPULATING DATA IN CONSOLE
Inserting Data into Collections
Updates
Deletes
Atomic Operations
Removing Data
Capped Collections
Session 6: USING AN API
Introducing Drivers
Java API with Practical Examples
Session 7: REPLICATION AND SHARDING
Introduction
Master-Slave Replication
Automatic Failover
Replication Administration
When to use Sharding?
Production Cluster Architecture
Session 8: INDEXING AND AGGREGATION
Creating Indexes
Manipulating Index Behaviour
Index Properties
Aggregating Results
Single Purpose Functions
The Aggregation Pipeline
Date Aggregation Operators