Course · 49 lessons
Database Roadmap.
A course from choosing a database to operating MySQL, PostgreSQL, SQL Server, MongoDB and Redis, with measured indexing, transactions, replication and recovery.
Go from picking the right database to operating six real engines in production. This path is structured into three stages, moving across MySQL, PostgreSQL, SQL Server, MongoDB, and Redis so you see the same problem solved — and sometimes not solved — differently by each one.
Beginner — engine fundamentals
- MySQL, SQL Server, MongoDB: EXPLAIN plans and CRUD basics on three very different query engines.
- Redis: strings, expiry, hashes, lists, sets, and sorted sets — the in-memory data structures every other Redis lesson builds on.
Intermediate — design, indexing, and correctness
- Choosing and designing: a weighted decision framework, transactions compared across engines, and MongoDB schema design (embedding vs referencing).
- Indexing & query performance: composite indexes, GIN indexes for JSONB, clustered vs nonclustered indexes, and measured before/after query plans.
- Joins, aggregation, and window functions: MySQL join execution plans, SQL Server window functions and recursive CTEs, MongoDB’s aggregation pipeline and its stage-order trap.
- Transactions & concurrency: isolation levels, real deadlocks, locking order fixes, and MongoDB and Redis’s different takes on multi-statement atomicity.
- Storage engine internals: PostgreSQL’s VACUUM/bloat and WAL durability tradeoffs.
- Procedures, streams, and pub/sub: stored procedures and triggers on two engines, MongoDB change streams, and Redis Pub/Sub.
- Day-2 operations: MySQL backup/recovery, Redis persistence (RDB vs AOF), replication, and ACL-based access control.
Advanced — scale, performance, and disaster recovery
- Scaling & distribution: MongoDB sharding and replica-set failover, Redis clustering, and a real vs. fake sharding comparison across engines.
- Performance at scale: measured indexing across engines, MongoDB’s profiler, and Redis Lua scripting/Functions.
- Reliability & correctness: ACID vs BASE’s lost-update problem, and the normalized-vs-embedded tradeoff measured in both directions.
- Disaster recovery: MySQL replication gaps, PostgreSQL point-in-time recovery, and a full SQL Server backup-drop-restore cycle.