Chapter 5 · Database Systems
Indexing, B+ Trees & NoSQL Systems
3 topics in 2 parts
Key ideas
| Evaluation Parameter | Standard Relational Pattern | Production Optimization Impact |
|---|---|---|
| Storage Engine Layer | Disk page blocks & buffer pool cache | Minimizes random disk I/O via sequential prefetching |
| Index Utilization | B+ Tree logarithmic search $O(\log N)$ | Avoids full table scans across millions of rows |
| Concurrency & Locks | Row-level shared (S) and exclusive (X) locks | Prevents race conditions while maximizing read throughput |
| Failure Recovery | Write-Ahead Logging (WAL) / Undo-Redo | Guarantees durability and instant crash recovery |
All 3 topics in Indexing, B+ Trees & NoSQL Systems
Indexing
- Database Indexing Principles
- B+ Trees Indexing
NoSQL
- SQL vs NoSQL & CAP Theorem