แยกตารางยักษ์เป็น physical child table ที่เล็กลงตาม partition key เพื่อให้แต่ละ query แตะเฉพาะ partition ที่ต้องการ (partition pruning) แทนที่จะสแกนพันล้าน row ตารางที่มี order 5B row ยังทำตัวเหมือนตาราง logical เดียว แต่ engine ข้าม 99% ของมันเมื่อ WHERE filter บน partition key
รูปร่างของตารางที่ partition แล้ว
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)
