Problem Statement
Which statement best contrasts horizontal sharding and vertical partitioning?
Explanation
Horizontal sharding distributes different rows of the same table to multiple physical nodes to scale write and read throughput.
Vertical partitioning separates columns by concern, often isolating wide or cold fields to another table or service for performance and cost control.
Code Solution
SolutionRead Only
users_shard_17 holds user_id hash 544..575; profile_wide moved to users_profile_ext
