Chapter 4 Revision: Database Design & Performance
Balancing normalized data integrity with real-world query throughput requires careful physical schema tuning: crafting optimal index structures, managing buffer pools, and choosing appropriate transaction isolation levels.
Use these flashcards for active recall. Try to answer the question out loud before clicking the card to flip it.
Flashcards 🎴
What are the three stages of Database Design?
2. Logical Design: Mapping ER models into a normalized relational schema (tables, foreign keys).
3. Physical Design: Selecting storage layouts, record clustering, indexes, partitioning, and buffer parameters.
What is the difference between a Clustered and a Non-Clustered (Secondary) Index?
• Non-Clustered Index: A separate auxiliary search structure whose leaf nodes contain index keys and row pointers (RID or primary key) pointing to the physical records.
What are the four ACID transaction properties?
• Consistency: Transactions transition the database from one valid integrity state to another.
• Isolation: Concurrent executions yield results equivalent to serial execution without interference.
• Durability: Committed transactions survive crashes and power failures via non-volatile logging.
What is the difference between a Non-Repeatable Read and a Phantom Read?
• Phantom Read: A transaction re-executes a range query and observes newly inserted or deleted rows matching the search condition because another transaction committed an INSERT/DELETE.
When is Controlled Denormalization justified in database systems?