Skip to main content
Loading page…
Python Mastery
Chapter 31
Lesson 3 of 4
MongoDB with PyMongo
Contents
Notes
Tutor
Concept
MongoDB Concepts and Setup
Loading activity…
Previous
1 / 10
Continue
Contents
Notes
Discussion
Tutor
55 min
10 activities
0 of 10 done
In this lesson
1
MongoDB Concepts and Setup
2
Connecting and Inserting Documents
3
Querying with find() and Query Operators
4
Update, Delete, and Upsert
5
Indexes — the Difference Between Fast and Unusable
6
Document Modeling: Embed vs Reference
7
Avoid the N+1 Query Problem
8
MongoDB Query Operator → Meaning
9
MongoDB Design Decisions
10
Senior Lab: Build, Run, and Review Evidence
Objectives
Connect to MongoDB with PyMongo and navigate the client/database/collection hierarchy
Insert, find, update, and delete documents using idiomatic PyMongo
Use MongoDB query operators to filter documents
Create indexes and explain why they matter for performance
Decide when to embed sub-documents vs reference other collections
Further reading
redis-py documentation
PyMongo documentation
Chapter 31 · NoSQL with Redis & MongoDB
SQL vs NoSQL
Redis with redis-py
MongoDB with PyMongo
Putting It Together
Previous: Redis with redis-py
Next: Putting It Together