Recall & Review
beginner
What is horizontal partitioning in database design?
Horizontal partitioning means splitting a table into multiple tables where each table holds a subset of rows. Think of it like dividing a guest list by last name ranges.
Click to reveal answer
beginner
What is vertical partitioning in database design?
Vertical partitioning means splitting a table into multiple tables where each table holds a subset of columns. Imagine separating a contact list into one table for names and another for phone numbers.
Click to reveal answer
intermediate
Which partitioning method improves query performance by reducing the number of columns scanned?
Vertical partitioning improves query performance by limiting the columns scanned, making queries faster when only some columns are needed.
Click to reveal answer
intermediate
How does horizontal partitioning help with scaling databases?
Horizontal partitioning helps scaling by distributing rows across multiple servers or disks, allowing parallel processing and reducing load on any single server.
Click to reveal answer
beginner
Give a real-life example to explain horizontal partitioning.
Imagine a library splitting its books by genre into different shelves. Each shelf holds a subset of books (rows), which is like horizontal partitioning.
Click to reveal answer
What does horizontal partitioning split in a database?
✗ Incorrect
Horizontal partitioning splits the table by rows, dividing data into subsets of records.
Vertical partitioning is best used when:
✗ Incorrect
Vertical partitioning splits data by columns, separating attributes into different tables.
Which partitioning method can improve query speed by reducing data scanned?
✗ Incorrect
Vertical partitioning reduces the number of columns scanned, speeding up queries that need fewer columns.
Horizontal partitioning helps with:
✗ Incorrect
Horizontal partitioning distributes rows across servers or disks to improve scalability.
Which is an example of vertical partitioning?
✗ Incorrect
Vertical partitioning splits data by columns, such as separating personal info and purchase history.
Explain the difference between horizontal and vertical partitioning with simple examples.
Think about dividing a spreadsheet by rows vs columns.
You got /4 concepts.
Describe how horizontal and vertical partitioning can help improve database performance and scalability.
Consider what happens when you only need some data or want to share load.
You got /4 concepts.