giant table ను ఒక partition key ద్వారా చిన్న physical child tables గా split చేయండి, తద్వారా ప్రతి query billions of 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)
