0
0
HLDsystem_design~5 mins

Horizontal vs vertical partitioning in HLD - Quick Revision & Key Differences

Choose your learning style9 modes available
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?
AIndexes
BColumns
CRows
DDatabases
Vertical partitioning is best used when:
AYou want to split data by columns
BYou want to archive old data
CYou want to replicate data
DYou want to split data by rows
Which partitioning method can improve query speed by reducing data scanned?
AHorizontal partitioning
BVertical partitioning
CBoth equally
DNeither
Horizontal partitioning helps with:
AReducing columns in a table
BNormalizing data
CEncrypting data
DDistributing rows across servers
Which is an example of vertical partitioning?
ASplitting customer data into personal info and purchase history tables
BSplitting customer data by region
CBacking up data to another server
DSharding data by user ID
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.