विशाल table ला एका partition key ने लहान physical child tables मध्ये विभागा, जेणेकरून प्रत्येक query फक्त तिला लागणाऱ्या partitions ला स्पर्श करते (partition pruning) अब्जावधी rows scan करण्याऐवजी. 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)
