विशाल table को एक partition key से छोटी physical child tables में बांटें, ताकि हर query अरबों rows scan करने के बजाय केवल उन partitions को छुए जिनकी ज़रूरत है (partition pruning)। 5 अरब order rows वाली एक table अब भी एक logical table की तरह व्यवहार करती है, पर जब आपका WHERE partition key पर filter करता है तो engine इसका 99% skip कर देता है।
एक partitioned table का आकार
orders (logical parent)
│ partition key = created_at
┌────────────────┼────────────────┬───────────────┐
▼ ▼ ▼ ▼
orders_2024_q1 orders_2024_q2 orders_2024_q3 orders_2025_q1
(child table) (child table) (child table) (child, active)
│ │
local index local index
(per child) (per child)
