Chapter 5 Revision: Database Design Challenges
Engineering real-world database architectures is an exercise in managing conflicting physical and logical forces: ACID guarantees vs distributed availability, normalization vs join latency, and index search acceleration vs write amplification.
Use these flashcards for active recall. Try to answer the question out loud before clicking the card to flip it.
Flashcards 🎴
What does the CAP Theorem state for distributed data stores?
What is the core trade-off between Normalization and Denormalization?
• Denormalization: Speeds read-heavy queries by eliminating joins, but introduces data redundancy, higher storage, and risk of inconsistent updates.
How do B+ Trees and Log-Structured Merge (LSM) Trees differ in read/write optimizations?
• LSM Trees: Write-optimized; appends writes sequentially to an in-memory MemTable and flushes immutable SSTables to disk, trading off read latency for ultra-high write throughput.
What is a Materialized View versus a Standard Database View?
• Materialized View: Physically computes and stores query results on disk, delivering instant reads at the cost of requiring periodic or trigger-based refresh synchronization.
What are the six steps of the Systematic Conflict Resolution Methodology?
2. Define Metric: Set quantitative targets (e.g., latency < 20ms).
3. Compare Alternatives: Indexing vs caching vs schema refactoring.
4. Prototype & Benchmark: Test under simulated load.
5. Implement Controlled Change: Deploy targeted optimization.
6. Continuous Monitoring: Track latency and buffer pool metrics.