Skip to main content
InterviewHubPRO
Section Overview
Q33

Question 33 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

66%
MySQL & InnoDB (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How does Partitioning work in MySQL (Range, List, Hash, Key)?

senior LevelDatabases & SQLMySQL

In Simple Words: Physically divides a single logical table into separate on-disk sub-tables:

  • Range Partitioning: e.g. Partition by YEAR(order_date).
  • Partition Pruning: Queries with date filters access only the relevant physical partition file, skipping the rest.
  • Rule: Every unique key on the table (including Primary Key) must include the partitioning column!