flowchart TB
subgraph BEFORE["key = district_id only (spec as written)"]
direction LR
LgB["Large District
40,000 students"]:::src
SmB["Small District
200 students"]:::src
P0B["Partition 0
⚠ Hotspot"]:::hot
P1B["Partition 1"]:::cool
LgB --> P0B
SmB --> P1B
end
subgraph AFTER["key = {district_id}:{student_key} (design as built)"]
direction LR
LgA["Large District
40,000 students"]:::src
SmA["Small District
200 students"]:::src
PA0["Partition 0"]:::cool
PA1["Partition 1"]:::cool
PA2["Partition 2"]:::cool
PA3["Partition 3"]:::cool
LgA --> PA0
LgA --> PA1
LgA --> PA2
LgA --> PA3
SmA --> PA1
SmA --> PA2
end
classDef src fill:#8b9bb0,stroke:#5f6e82,color:#fff,font-size:13px
classDef hot fill:#e05a5a,stroke:#b23b3b,color:#fff,font-size:13px
classDef cool fill:#2a9d8f,stroke:#1f7a6f,color:#fff,font-size:13px
linkStyle default stroke:#999,stroke-width:2px