Spill to Disk¶
Large operations can spill to disk when memory is exhausted.
Spill-Capable Operators¶
| Operator | Spill Strategy |
|---|---|
| Hash Join | Partition both sides |
| Aggregate | Partition by group key |
| Sort | External merge sort |
Hash Join Spilling¶
When build side exceeds memory:
1. Partition data by hash
2. Spill partitions that don't fit
3. Process in-memory partitions
4. Load and process spilled partitions