Learning objectives
What you will be able to explain
- What is the process of converting a multi-dimensional relation into a sequence of values called?
- A standard database page typically consists of which two main portions?
- Match transformation term to definition
- Sequential vs random access speedup
- Record headers: True or False
- Which statement about memory vs disk addressability is correct?
Section 01
What is the process of converting a multi-dimensional relation into a sequence of values called? to Match transformation term to definition
01
What is the process of converting a multi-dimensional relation into a sequence of values called?
02
A standard database page typically consists of which two main portions?
Guided checkpoint
Select all that apply.
03
Match transformation term to definition
Section 02
Sequential vs random access speedup to Which statement about memory vs disk addressability is correct?
01
Sequential vs random access speedup
Guided checkpoint
A relation with 1024 blocks takes 11 s when random and 139 ms when sequential. Compute speedup = random_time / sequential_time.
02
Record headers: True or False
Guided checkpoint
Mark each statement as True or False.
03
Which statement about memory vs disk addressability is correct?
Section 03
Fixed-length record size to What is the purpose of the `slotID` in a slotted page structure?
01
Fixed-length record size
Guided checkpoint
Calculate the total size of a record for the following SQL schema:
CREATE TABLE Citizens (Name CHAR(30), Age SMALLINT, State CHAR(2))Assume SMALLINT is 2 bytes, no padding and no header. Compute total bytes.
02
4-byte alignment size calculation
Guided checkpoint
Given a record with a 30-byte `CHAR`, a 2-byte `SMALLINT`, and a 2-byte `CHAR`, calculate the total size if the system uses **4-byte alignment** (padding the fields to the nearest 4-byte boundary).
03
What is the purpose of the `slotID` in a slotted page structure?
Section 04
How does a record layout typically handle variable-length attributes (like a long `VARCHAR`) to keep the primary record size fixed? (Select all that apply) to What is pointer swizzling?
01
How does a record layout typically handle variable-length attributes (like a long `VARCHAR`) to keep the primary record size fixed? (Select all that apply)
Guided checkpoint
Select all that apply.
02
When is a spanned record structure used?
03
What is pointer swizzling?
Section 05
Match insertion requirement to DBMS action to N-ary Storage Model (NSM) is commonly known as which layout?
01
Match insertion requirement to DBMS action
02
What is a tombstone in record deletion?
03
N-ary Storage Model (NSM) is commonly known as which layout?
Section 06
Decomposition Storage Model (DSM) is commonly known as which layout? to Which layout is generally preferred for OLTP workloads?
01
Decomposition Storage Model (DSM) is commonly known as which layout?
02
Typical disadvantages of column layout (DSM)
Guided checkpoint
Select all that apply.
03
Which layout is generally preferred for OLTP workloads?
Guided checkpoint
Online Transaction Processing
Section 07
Which layout is generally preferred for OLAP with few attributes accessed? to What does PAX stand for in hybrid layouts?
01
Which layout is generally preferred for OLAP with few attributes accessed?
Guided checkpoint
Online Analytical Processing
02
What is the fractured mirrors approach?
03
What does PAX stand for in hybrid layouts?
Section 08
PAX characteristics: True or False to Record reconstruction cost
01
PAX characteristics: True or False
Guided checkpoint
Mark each statement as True or False.
02
Inter-record spatial locality (Yes/No)
Guided checkpoint
Rank the inter-record spatial locality for the following layouts (Yes/No):
03
Record reconstruction cost
Section 09
According to the slides, what determines the best data layout? to What does HTAP stand for?
01
According to the slides, what determines the best data layout?
02
Beyond layout, which aspects are important for performance?
Guided checkpoint
Select all that apply.
03
What does HTAP stand for?
Section 10
What was the key takeaway from the M1 traversal experiment? to Memory alignment with header
01
What was the key takeaway from the M1 traversal experiment?
02
Storing together only the attributes that are frequently used together in a workload is known as:
03
Memory alignment with header
Guided checkpoint
Calculate the total size of a record with: 8-byte Header, 4-byte Integer, 1-byte Boolean
Assume **4-byte alignment** is required for each field following the header.
Section 11
OLTP vs. OLAP: classify each statement
01
OLTP vs. OLAP: classify each statement
Guided checkpoint
Drag each sentence card from the deck to either OLTP or OLAP.
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.