1. Introduction to MongoDB and NoSQL
Unlike relational systems, NoSQL databases organize data around different consistency, flexibility, and scalability assumptions. This section places MongoDB in that context, compares it with RDBMS approaches, and reviews practical scenarios where its model fits operational needs.
- characteristics of NoSQL databases, benefits and limitations,
- differences between MongoDB and relational databases (RDBMS) and their applications,
- examples of the practical use of MongoDB.
2. Data Structure and Modeling in MongoDB
MongoDB data modeling relies on documents and the trade-offs behind their structure. The section compares JSON and BSON, explains relationship modeling with references and embeddings, and shows how design choices affect performance as the database grows.
- JSON vs. BSON documents – basics of data structure,
- document models and relationship modeling (references and embeddings),
- optimization of data modeling for performance.
3. Creating the work environment
Before working with data, the environment must be prepared across local, server, and cloud setups. This section includes MongoDB installation, cluster creation in MongoDB Atlas, and orientation in the main tools: MongoDB Shell, MongoDB Compass, and the Atlas Dashboard.
- installation of MongoDB locally and on the server,
- creating a cluster on MongoDB Atlas (MongoDB in the cloud),
- overview of tools: MongoDB Shell, MongoDB Compass, MongoDB Atlas Dashboard.
4. CRUD operations and the basics of working with the database
Core database work in MongoDB is built around document-level CRUD operations. The section covers creating, reading, updating, and deleting records, then connects these actions with document-level transaction handling and the mechanisms used to preserve data consistency.
- basic CRUD (Create, Read, Update, Delete) operations on documents,
- transaction management at the document level,
- introduction to mechanisms ensuring data consistency.
5. Filtering and searching data
Effective retrieval starts with precise filtering logic. Participants combine comparison and logical operators, extend queries with $exists, $type, and $regex, and examine full-text search together with the $where clause for cases that require more specialized matching.
- comparison operators ($eq, $gt, $lt, $in, $nin) and logic ($and, $or, $not),
- filtering using special operators ($exists, $type, $regex),
- full-text search and filtering using the $where clause.
6. Projection and management of returned data
Returned results often need to be narrowed before they are useful in applications or analysis. This part explains projection for selecting fields, applies Count and Distinct to control result interpretation, and shows how query-based views can present data in a targeted form.
- narrowing the number of fields using projection,
- the Count and Distinct functions for managing results,
- constructing views based on queries and projections.
7. Data aggregation and report creation
Using the aggregation framework, participants build result sets from multiple processing stages rather than simple lookups. The section focuses on $group, $match, $project, and $sort, showing how to organize, summarize, and analyze larger collections for reporting purposes.
- aggregation using stages such as $group, $match, $project, $sort,
- introduction to the MongoDB aggregation framework,
- examples of applications: grouping, sorting, analyzing large data sets.
8. Import and export of data
Moving data between MongoDB and external systems involves both format handling and tool selection. Participants practice importing from CSV, JSON, and relational sources, exporting to CSV, JSON, and BSON, and using MongoDB utilities in workflows connected with Excel and Tableau.
- import of data from flat files (CSV, JSON) and relational databases,
- export of data to CSV, JSON, BSON formats,
- work with export and import tools in MongoDB, integration with Excel and Tableau.
9. Query optimization and indexing
Indexes have a direct impact on query cost and response time in MongoDB. The section covers single-field, multi-field, compound, and TTL indexes, then uses Explain and Profiler to assess execution behavior and select an indexing strategy aligned with access patterns.
- overview of indexes: single- and multi-field, compound and TTL indexes,
- using Explain and Profiler to analyze query performance,
- selection of the appropriate indexing model for performance optimization.
10. Advanced bulk operations and Map-Reduce
When large numbers of documents must be processed efficiently, bulk operations become a practical alternative to single-document actions. This part also introduces Map-Reduce for aggregation and transformation of large data sets, with attention to typical use cases and its constraints.
- bulk operations (Bulk Operations) and their applications,
- Map-Reduce as a method of processing and aggregating large data sets,
- examples and limitations of Map-Reduce operations.
11. MongoDB Security and Monitoring
Controlling access to data requires more than user accounts alone. Participants work through MongoDB security mechanisms, performance monitoring in MongoDB Atlas with alerts, and database activity auditing used to identify anomalies and investigate operational issues.
- security of access to data and users,
- performance monitoring on MongoDB Atlas and alerts,
- auditing database activity and anomaly detection.
12. Scaling and data replication
Replication and sharding address availability and growth in MongoDB from an infrastructure perspective. The section explains how replicas increase fault tolerance, how data is partitioned across clusters, and when to choose horizontal or vertical scaling for a given workload.
- basics of replication in MongoDB to increase availability,
- introduction to sharding – partitioning data across clusters,
- horizontal and vertical scaling in MongoDB.