Learning objectives
What you will be able to explain
- Which level of the memory hierarchy is typically the fastest to access?
- Evaluate the following statements about locality:
- A relation has 12,000 tuples. Each tuple has 108 bytes payload plus a 12-byte tuple header. Blocks are 1,024 bytes with 24-byte block header. How many blocks are required?
- For OLTP-style point updates and single-tuple access, which layout is usually preferable?
- Pointer swizzling/unswizzling is used to...
- A DBMS uses Steal + No-Force. Which recovery capabilities are required after crashes?
Section 01
Which level of the memory hierarchy is typically the fastest to access? to A relation has 12,000 tuples. Each tuple has 108 bytes payload plus a 12-byte tuple header. Blocks are 1,024 bytes with 24-byte block header. How many blocks are required?
01
Which level of the memory hierarchy is typically the fastest to access?
02
Evaluate the following statements about locality:
03
A relation has 12,000 tuples. Each tuple has 108 bytes payload plus a 12-byte tuple header. Blocks are 1,024 bytes with 24-byte block header. How many blocks are required?
Section 02
For OLTP-style point updates and single-tuple access, which layout is usually preferable? to A DBMS uses Steal + No-Force. Which recovery capabilities are required after crashes?
01
For OLTP-style point updates and single-tuple access, which layout is usually preferable?
02
Pointer swizzling/unswizzling is used to...
03
A DBMS uses Steal + No-Force. Which recovery capabilities are required after crashes?
Section 03
In a [Select: Shared Memory / Shared Disk / Shared Nothing] architecture, nodes have private memory but access one common storage system. to Which task belongs to the parser (and not to preprocessing)?
01
In a [Select: Shared Memory / Shared Disk / Shared Nothing] architecture, nodes have private memory but access one common storage system.
02
Which is an extreme form of vertical partitioning?
03
Which task belongs to the parser (and not to preprocessing)?
Section 04
Relational algebra equivalences: True or False? to For independent predicates, estimate with , , and selectivity.
01
Relational algebra equivalences: True or False?
02
Estimate for and under uniformity.
03
For independent predicates, estimate with , , and selectivity.
Section 05
Which rule rewrites selection over cartesian product into an explicit join? to Greedy join ordering on : , , , , , . Which pair is selected first?
01
Which rule rewrites selection over cartesian product into an explicit join?
02
Match histogram types to their core characteristic.
03
Greedy join ordering on : , , , , , . Which pair is selected first?
Section 06
Estimate with , , , . to Evaluate 2PL validity of a lock sequence.
01
Estimate with , , , .
02
What is the defining 2PL rule?
03
Evaluate 2PL validity of a lock sequence.
Guided checkpoint
:
Would the initial sequence be 2PL? If is requested after , would it still be 2PL?
Section 07
Which lock mode is compatible with an existing SIX lock (same hierarchy node)? to In 2PC, what forces the coordinator to decide global ABORT?
01
Which lock mode is compatible with an existing SIX lock (same hierarchy node)?
02
Under Snapshot Isolation, starts at , commits an update on at , and reads at time 25. Which version does read?
03
In 2PC, what forces the coordinator to decide global ABORT?
Section 08
Why is classic 2PC considered problematic under failures? to ARIES Redo: mark each UPDATE as Redo or Ignore
01
Why is classic 2PC considered problematic under failures?
02
Winners and losers at crash time
Guided checkpoint
At crash, log contains:
| LSN | Log Record |
|---|---|
| 10 | |
| 20 | |
| 30 | |
| 40 | |
| 50 | |
| 60 |
03
ARIES Redo: mark each UPDATE as Redo or Ignore
Guided checkpoint
Use the same log as q23. Assume after analysis:
| Dirty Page Table | Value |
|---|---|
| P1 recLSN | 30 |
| P2 recLSN | 40 |
| Page | pageLSN on disk |
|---|---|
| P1 | 35 |
| P2 | 20 |
Section 09
ARIES Undo: mark each UPDATE as Undo or Ignore to Which property most strongly characterizes a strictly distributed database (vs tightly-coupled parallel DB)?
01
ARIES Undo: mark each UPDATE as Undo or Ignore
Guided checkpoint
Using q23, winner set is {T1}, loser set is {T2}.
02
Assuming one CLR per undone UPDATE in q25, how many CLRs are generated?
03
Which property most strongly characterizes a strictly distributed database (vs tightly-coupled parallel DB)?
Section 10
Which are recognized shared-nothing scaling challenges? (Select all that apply) to What is the distributed DBMS mantra for data placement and execution?
01
Which are recognized shared-nothing scaling challenges? (Select all that apply)
02
Distributed join transfer cost: Node A has (10,000 tuples, 100 bytes each), Node B has (10 tuples, 100 bytes each). Compare (1) broadcasting to A vs (2) perfect 2-way hash shuffle of both relations (ignore final result transfer).
03
What is the distributed DBMS mantra for data placement and execution?
Section 11
Even with high locality, what is the main risk of strong data skew in parallel execution? to Sparse index sizing: A data file has 10,000,000 tuples of 512 bytes each, block size 8192 bytes. Index entry size is 12 bytes. How many blocks for first-level sparse index?
01
Even with high locality, what is the main risk of strong data skew in parallel execution?
02
Which factors must distributed query optimizers model beyond centralized optimizers? (Select all that apply)
03
Sparse index sizing: A data file has 10,000,000 tuples of 512 bytes each, block size 8192 bytes. Index entry size is 12 bytes. How many blocks for first-level sparse index?
Section 12
Using q33 results, how many blocks does a second-level sparse index require? to In extensible hashing, when must the directory global depth be increased?
01
Using q33 results, how many blocks does a second-level sparse index require?
02
Which statement is true for a B+ tree index?
03
In extensible hashing, when must the directory global depth be increased?
Knowledge check
Turn understanding into recall.
The quiz now follows the same concepts in scored form. You can return to this lesson from the quiz whenever a gap appears.