MongoDB
Learn databases from absolute zero — no coding or database experience required. Over eight weekly sessions, you'll go from "what even is a database?" to confidently storing, querying, and analysing data with MongoDB using free cloud tools.
What you'll learn
Introduction
An overview of the course and how it takes you from zero database knowledge to confidently working with MongoDB using free cloud tools.
What is a Database
Learn what databases are, why they beat spreadsheets, and the difference between SQL and NoSQL. You’ll get to know MongoDB, JSON, and how replica sets and sharding keep data available and scalable, then set up your toolkit and a school database.
Reading Data
Query a real movie collection with find and findOne, using filters, comparison operators, and logical operators like and/or/not. You’ll also query arrays and nested fields, choose which fields to return, and sort, limit, skip, and count results.
Writing Data
Learn to update documents with updateOne and updateMany, using operators like $set, $inc, $unset, $rename, $push, and $pull. You’ll also use upserts, replace documents, and delete data safely with deleteOne, deleteMany, and drop.
Modelling Relationships
Learn how to design your data by modelling one-to-one, one-to-many, and many-to-many relationships using a bookstore example. You’ll understand when to embed versus reference, and how to avoid pitfalls like unbounded arrays.
Index
Find out why queries get slow and diagnose them with explain(). You’ll create single, compound, and unique indexes, use them to speed up sorting, and weigh the trade-offs of adding indexes.
Aggregation Pipeline
Analyse data by chaining stages like $match, $project, $sort, $limit, $addFields, and $count. You’ll join collections with $lookup and save results to a new collection with $out.
MongoDB with Python
Connect to MongoDB from code using Python and PyMongo to query, insert, and update data. You’ll turn user input into queries, handle errors gracefully, and build a movie search app step by step.
Security, Replication & Backups
Learn how to secure your database, and how replication, sharding, and backups keep data safe and available in production.
Course content
01Introduction1 lessons
- LessonAbout this course
02What is a Database13 lessons
- LessonIntroduction
- LessonThe Big Picture
- LessonWhy Not Use Spreadsheets?
- LessonWhat is a Database?
- LessonTypes of Databases
- LessonSQL vs NoSQL
- LessonWhat is MongoDB?
- LessonJavaScript Object Notation - JSON and Its Types
- LessonReplica sets: Staying up - High Availability
- LessonSharding - Scaling Horizontally
- LessonSetting Up Your Toolkit
- QuizChapter 1 - Quiz
- ExerciseChapter 1 - Assignment - School Database Setup
03Reading Data15 lessons
- LessonIntroduction
- LessonLoad the movie collection
- LessonFind and Find One
- LessonFilters
- LessonComparison Operators
- LessonRange
- LessonIn and Not In
- LessonAnd Or & Not
- LessonSearching Arrays
- LessonNested fields - Dot Notation
- LessonCount Documents
- LessonProjection - choosing fields to show
- LessonSort, Limit and Skip
- QuizChapter 2 - Reading Data Quiz
- ExerciseChapter 2 - Assignment
04Writing Data14 lessons
- LessonIntroduction
- LessonReset the movie collection
- LessonupdateOne and $set
- LessonAdding new fields with $set
- LessonupdateMany
- Lesson$inc: making numbers move
- Lesson$unset and $rename: removing and renaming fields
- Lesson$push and $pull: updating arrays
- LessonUpsert: update it, or create it if missing
- LessonreplaceOne
- LessondeleteOne
- LessondeleteMany and drop
- QuizChapter 3 - Quiz
- ExerciseChapter 3 - Assignment
05Modelling Relationships12 lessons
- LessonIntroduction
- LessonLoad the bookstore
- LessonWhat is Data Modelling
- LessonThe Three Relationships
- LessonEmbedding
- LessonReferencing
- LessonChoosing between Embedding and Referencing
- LessonThe Unbounded Array
- LessonReading a Schema
- LessonModelling Many to Many
- QuizChapter 4 - Quiz
- ExerciseChapter 4 - Assignment
06Indexes13 lessons
- LessonIntroduction
- LessonGenerate Large Dataset
- LessonWhy is my query slow?
- Lessonexplain()
- LessonCreating Index
- LessonReading explain() after index
- LessonCompound Indexes
- LessonIndex and Sort
- LessonUnique Indexes
- LessonThe price of Indexes
- LessonChoosing Index
- QuizChapter 5 - Quiz
- ExerciseChapter 5 - Assignment
07Aggregations Pipeline9 lessons
- Lesson$group
- Lesson$limit
- Lesson$project
- Lesson$sort
- Lesson$match
- Lesson$addFields
- Lesson$count
- Lesson$lookup
- Lesson$out
08MongoDb From Code12 lessons
- LessonIntroduction
- LessonSetup - Python and PyMongo
- LessonConnecting from Code
- LessonYour First Query From Code
- LessonInserting and Updating from Code
- LessonWorking with Results: Cursors, Lists, and Loops
- LessonFrom user input to query
- LessonHandling "not found" and errors politely
- LessonBuild: the movie search app, part 1 (menu + search)
- LessonBuild: the movie search app, part 2 (add + delete + counts)
- QuizChapter 7 - Quiz
- ExerciseChapter 7 - Assignment
09Ship it5 lessons
- LessonIntroduction
- LessonLocking the doors
- LessonReplication
- LessonSharding
- LessonBackups
10FInal Project1 lessons
- LessonProject
What students say
AB GELE KIFAL NAYTI VIDOE ETI TEXT DEQIQ ELU KIABI ZEKEAL ENTE KOUNU TSBUK NERU .
Wonderful class👍
Thank you!
useful
Natty has a remarkable ability to explain complex concepts in a simple and understandable manner, making the learning experience both enjoyable and effective. His dedication to using our own language to convey information is commendable and greatly apprec...
This Content of the course is Great