Learning objectives
What you will be able to explain
- Who controls which cache layer in the lecture model?
- Which statement matches the locality definitions?
- What is the disk-latency decomposition used in the storage lecture?
- Average read latency in the worked disk example
- Elevator setup: fixed per-request time without movement distance
- Which page statement is correct?
Section 01
Who controls which cache layer in the lecture model? to What is the disk-latency decomposition used in the storage lecture?
01
Who controls which cache layer in the lecture model?
Guided checkpoint
Choose the correct mapping.
Source: 01_Storage.pdf, page 9
02
Which statement matches the locality definitions?
Source: 01_Storage.pdf, page 10
03
What is the disk-latency decomposition used in the storage lecture?
Source: 01_Storage.pdf, page 39
Section 02
Average read latency in the worked disk example to Which page statement is correct?
01
Average read latency in the worked disk example
Guided checkpoint
Using the slide values seek=6.46 ms, rotational=4.17 ms, transfer=0.13 ms, what is total average latency?
Source: 01_Storage.pdf, page 43
02
Elevator setup: fixed per-request time without movement distance
Guided checkpoint
Given seek time = 1 ms + (#tracks/4000) ms, average rotational latency = 4.17 ms, transfer time = 0.13 ms, compute the fixed time excluding the #tracks/4000 term.
Source: 01_Storage.pdf, page 58
03
Which page statement is correct?
Source: 02_Data_Layouts.pdf, page 10
Section 03
In slotted-page layout, how is tupleID represented? to How is PAX characterized in the lecture?
01
In slotted-page layout, how is tupleID represented?
Source: 02_Data_Layouts.pdf, page 11
02
What is a key downside of pure column layout (DSM)?
Source: 02_Data_Layouts.pdf, page 31
03
How is PAX characterized in the lecture?
Source: 02_Data_Layouts.pdf, page 43
Section 04
Which NSM/DSM/PAX comparison row is correct? to How does the lecture classify CLOCK replacement?
01
Which NSM/DSM/PAX comparison row is correct?
Source: 02_Data_Layouts.pdf, page 45
02
Which buffer granularity is commonly used in DBMS buffering?
Source: 03_Caching.pdf, page 16
03
How does the lecture classify CLOCK replacement?
Source: 03_Caching.pdf, pages 20 and 25
Section 05
Which LRU-vs-FIFO statement is correct? to In PostgreSQL buffer-manager architecture, what is the buffer table?
01
Which LRU-vs-FIFO statement is correct?
Source: 03_Caching.pdf, page 22
02
In CLOCK victim search, what happens on reference bit = 1?
Source: 03_Caching.pdf, page 26
03
In PostgreSQL buffer-manager architecture, what is the buffer table?
Source: 03_Caching.pdf, page 32
Section 06
When is an index usually preferable to a scan? to Which statement best matches sparse indexes in the lecture?
01
When is an index usually preferable to a scan?
Source: 04_Indexing 1.pdf, page 8
02
What defines a dense index?
Source: 04_Indexing 1.pdf, pages 12 and 14
03
Which statement best matches sparse indexes in the lecture?
Source: 04_Indexing 1.pdf, page 16
Section 07
What is true for a secondary index on sequential files? to Which structural B-tree property is emphasized?
01
What is true for a secondary index on sequential files?
Source: 04_Indexing 1.pdf, page 23
02
During data updates, which index-maintenance statement is correct?
Source: 04_Indexing 1.pdf, page 24
03
Which structural B-tree property is emphasized?
Source: 05_Indexing 2.pdf, page 12
Section 08
How are B-tree nodes sized relative to capacity? to If deletion causes too few keys in a B-tree node, what is the standard fix order?
01
How are B-tree nodes sized relative to capacity?
Source: 05_Indexing 2.pdf, page 12
02
What can happen when insertion reaches a full root?
Source: 05_Indexing 2.pdf, page 29
03
If deletion causes too few keys in a B-tree node, what is the standard fix order?
Source: 05_Indexing 2.pdf, page 35
Section 09
What is the key bulk-loading idea for large B-tree construction? to Which collision-handling families are explicitly listed?
01
What is the key bulk-loading idea for large B-tree construction?
Source: 05_Indexing 2.pdf, page 47
02
Hash-table indexing: what range does h(K) map to?
Source: 06_Indexing 3_hash_tables.pdf, page 8
03
Which collision-handling families are explicitly listed?
Source: 06_Indexing 3_hash_tables.pdf, page 9
Section 10
Why are dynamic resizing mechanisms needed in hash tables? to Which statement distinguishes linear hashing from extensible hashing in the slides?
01
Why are dynamic resizing mechanisms needed in hash tables?
Source: 06_Indexing 3_hash_tables.pdf, page 11
02
Which dynamic hash-table variants are covered in this lecture?
Source: 06_Indexing 3_hash_tables.pdf, page 20
03
Which statement distinguishes linear hashing from extensible hashing in the slides?
Source: 06_Indexing 3_hash_tables.pdf, page 31
Section 11
kNN strategy in multidimensional space: which sequence matches the slide? to Bitmap index definition: what does one bitmap vector represent?
01
kNN strategy in multidimensional space: which sequence matches the slide?
Source: 07_1_Multidimensional Indexing.pdf, page 56
02
Which set contains only index families shown on the multidimensional overview slide?
Source: 07_1_Multidimensional Indexing.pdf, page 63
03
Bitmap index definition: what does one bitmap vector represent?
Source: 07_1_Multidimensional Indexing.pdf, page 92
Section 12
How are partial-match queries executed with bitmap indexes (as shown)? to What is the core Grid File idea (part 2 slides)?
01
How are partial-match queries executed with bitmap indexes (as shown)?
Source: 07_1_Multidimensional Indexing.pdf, page 94
02
According to the bitmap-query slide, which operation is associated with point queries?
Source: 07_1_Multidimensional Indexing.pdf, page 94
03
What is the core Grid File idea (part 2 slides)?
Source: 07_2_multidimensional indexing_pt2.pdf, page 2
Section 13
Given a query point in a grid file, what does the search procedure do? to R-tree point query: how are overlapping subregions handled?
01
Given a query point in a grid file, what does the search procedure do?
Source: 07_2_multidimensional indexing_pt2.pdf, page 3
02
Which statement about kd-trees is correct?
Source: 07_2_multidimensional indexing_pt2.pdf, page 20
03
R-tree point query: how are overlapping subregions handled?
Source: 07_2_multidimensional indexing_pt2.pdf, page 40
Section 14
Nearest-neighbor simple strategy in these slides starts by... to The lecture separates processing models into which three dimensions?
01
Nearest-neighbor simple strategy in these slides starts by...
Source: 07_2_multidimensional indexing_pt2.pdf, page 49
02
How are logical and physical operators related?
Source: 08_Query Execution.pdf, page 5
03
The lecture separates processing models into which three dimensions?
Source: 08_Query Execution.pdf, page 10
Section 15
Iterator (Volcano) model: which function returns the next tuple or NotFound? to What is morsel-driven parallelism in this lecture?
01
Iterator (Volcano) model: which function returns the next tuple or NotFound?
Source: 08_Query Execution.pdf, page 14
02
What tradeoff is highlighted for the fully materialized (operator-at-a-time) model?
Source: 08_Query Execution.pdf, page 22
03
What is morsel-driven parallelism in this lecture?
Source: 08_Query Execution.pdf, page 62
Section 16
Which task belongs to the parser stage? to How is output cardinality estimated from selectivity?
01
Which task belongs to the parser stage?
Source: 09_Query_Optimization.pdf, page 8
02
Which task belongs to preprocessing?
Source: 09_Query_Optimization.pdf, page 11
03
How is output cardinality estimated from selectivity?
Source: 09_Query_Optimization.pdf, page 26
Section 17
For selection A != c, which common heuristic is shown? to Disjunction example from page 32: better estimate
01
For selection A != c, which common heuristic is shown?
Source: 09_Query_Optimization.pdf, page 28
02
How is conjunction selectivity estimated in the basic heuristic model?
Source: 09_Query_Optimization.pdf, page 29
03
Disjunction example from page 32: better estimate
Guided checkpoint
In the slide example with n=10000, m1=200 and m2=3333 for a disjunction, what is the better estimate using the independence-based formula?
Source: 09_Query_Optimization.pdf, page 32
Section 18
Join-cardinality worked example from the slides to What is the Selinger-style enhancement over plain dynamic programming?
01
Join-cardinality worked example from the slides
Guided checkpoint
For the example R(A,B) join S(B,C) join U(C,D) with T(R)=1000, T(S)=2000, T(U)=5000, V(R,B)=20, V(S,B)=50, V(S,C)=100, V(U,C)=500, what total cardinality is shown?
Source: 09_Query_Optimization.pdf, page 35
02
Unknown selectivity case: derive cardinality bounds
Guided checkpoint
Assume T(R)=420000 and V(R,b)=20. For sigma_(b!=37 OR d<80)(R), let p=sel(d<80) be unknown. Using slide heuristics and OR independence form, compute lower and upper bounds for T(S).
03
What is the Selinger-style enhancement over plain dynamic programming?
Source: 09_Query_Optimization.pdf, page 49
Section 19
Serializable schedule means... to What does basic 2PL guarantee, and what can still happen?
01
Serializable schedule means...
Source: 10_Concurrency Control.pdf, page 24
02
When is a schedule conflict-serializable?
Source: 10_Concurrency Control.pdf, page 36
03
What does basic 2PL guarantee, and what can still happen?
Source: 10_Concurrency Control.pdf, page 47
Section 20
Strict 2PL differs from basic 2PL mainly by... to READ COMMITTED permits which phenomena according to the slide?
01
Strict 2PL differs from basic 2PL mainly by...
Source: 10_Concurrency Control.pdf, page 53
02
Which intention-lock compatibility fact is shown in the example?
Source: 10_Concurrency Control.pdf, page 58
03
READ COMMITTED permits which phenomena according to the slide?
Source: 10_Concurrency Control.pdf, page 70
Section 21
Steal / No-Steal and Force / No-Force: which pairing is correct? to Write-ahead logging (WAL): which rule is essential?
01
Steal / No-Steal and Force / No-Force: which pairing is correct?
02
Which recovery-method pairing is shown in the overview?
Source: 11_Recovery.pdf, page 10
03
Write-ahead logging (WAL): which rule is essential?
Source: 11_Recovery.pdf, page 16
Section 22
What is the three-pass recovery order? to How is speedup defined in the parallel DB lecture?
01
What is the three-pass recovery order?
Source: 11_Recovery.pdf, page 24
02
Undo phase details: which statement matches the slide?
Source: 11_Recovery.pdf, page 28
03
How is speedup defined in the parallel DB lecture?
Source: 12_Parallel_DBs_and_Big_data.pdf, page 7
Section 23
What characterizes a homogeneous distributed database? to Replication vs fragmentation: which statement is correct?
01
What characterizes a homogeneous distributed database?
Source: 12_Parallel_DBs_and_Big_data.pdf, page 15
02
Which mapping of query parallelism to workload focus is correct?
Source: 12_Parallel_DBs_and_Big_data.pdf, page 24
03
Replication vs fragmentation: which statement is correct?
Source: 12_Parallel_DBs_and_Big_data.pdf, page 31
Section 24
Horizontal vs vertical partitioning: pick the correct statement to I/O operations on bitmap indexes: size and block footprint
01
Horizontal vs vertical partitioning: pick the correct statement
02
Match all ACID properties to their definitions
Guided checkpoint
Match each ACID property to the correct definition from the lecture.
03
I/O operations on bitmap indexes: size and block footprint
Guided checkpoint
Assume a fact table with 200,000,000 tuples and bitmap indexes on storeID (1000 distinct values), productID (50 distinct values), and timestamp (150,000,000 distinct values). Page size is 4096 bytes, and two bitmaps cannot share a block.
Compute: (1) total bitmap size per attribute in bits, and (2) total number of 4KB blocks per attribute.
Section 25
Compressed bitmap index size (RLE) for clustered productID
01
Compressed bitmap index size (RLE) for clustered productID
Guided checkpoint
Assume the table is clustered on productID and bitmap runs are encoded with two int arrays per bitmap: values[] and runLengths[], where each int is 4 bytes.
Given 48 middle bitmaps with 3 ints in each array and 2 endpoint bitmaps with 2 ints in each array, compute total compressed size in bytes.
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.