பெரிய table-ஐ ஒரு partition key மூலம் சிறிய physical child tables ஆகப் பிரியுங்கள், இதனால் ஒவ்வொரு query-ம் பில்லியன் கணக்கான rows-ஐ scan செய்வதற்குப் பதிலாக தேவையான partitions-ஐ மட்டும் தொடுகிறது (partition pruning). 5B 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)
