Master the SQL & Database Engine.
Interactive engines for B+ Tree index traversal, Composite Index Prefix rules, EXPLAIN cost plans, physical joins, ACID isolation anomalies, and analytical window functions.
B+ Tree Index Traversal & Leaf Page Stepper
45 > 30 and 45 <= 70. Follow pointer between 30 and 70 to Branch Page #3.
Composite Index & Leftmost Prefix Rule Evaluator
✅ Perfect match: Filters match index columns in exact leftmost order (country -> status -> created_at).
EXPLAIN (ANALYZE, BUFFERS) Plan Inspector
Index Scan using idx_orders_user_id on orders (cost=0.42..8.45 rows=2 width=32) Index Cond: (user_id = 942) Buffers: shared hit=3 (B-Tree) read=1 (Heap) Planning Time: 0.110 ms Execution Time: 0.082 ms
B-Tree Index Scan + Table Heap Fetch
Traverses the 3-level B-Tree index in 0.05ms, then fetches the exact 2 matching rows from the heap data page.
SQL Physical Joins Engine (Nested Loop, Hash, Merge)
Concurrency Anomaly & Isolation Level Stepper
BEGIN;
BEGIN;
Both transactions start concurrent sessions.
MVCC Tuple Versioning & AutoVacuum Simulator
Click "Execute UPDATE (TX 101)" to see how PostgreSQL creates new tuple versions without in-place overwrites.
Window Functions & Frame Partitions Visualizer
| Name | Department | Salary | ROW_NUMBER() | RANK() | DENSE_RANK() |
|---|---|---|---|---|---|
| Alice | Engineering | $120,000 | 1 | 1 | 1 |
| Bob | Engineering | $120,000 | 2 | 1 (Tie) | 1 (Tie) |
| Charlie | Engineering | $95,000 | 3 | 3 (Gap) | 2 (No Gap) |
| Diana | Marketing | $90,000 | 1 | 1 | 1 |
| Ethan | Marketing | $85,000 | 2 | 2 | 2 |
Interactive SQL Query Scratchpad & Planner
| name | role | product | total |
|---|---|---|---|
| Alice | admin | MacBook Pro | 2499 |
| Bob | developer | Mechanical Keyboard | 150 |
| Charlie | developer | 4K Monitor | 450 |
20 In-Depth Lessons
Relational algebra, B+ Tree leaf pages, Leftmost Prefix Rule, Window functions, and WAL crash recovery.
EXPLAIN Plan Optimizer
Dissect Seq Scan vs Index Scan vs Index-Only Scan with real buffer cache metrics.
Senior Flashcards
Master tough database interview questions on Write Skew, MVCC dead tuples, and composite indexes.