Skip to content

Commit 9711351

Browse files
committed
Increase spill read-ahead
1 parent f319058 commit 9711351

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • datafusion/physical-plan/src/joins/grace_hash_join

datafusion/physical-plan/src/joins/grace_hash_join/stream.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ use parking_lot::Mutex;
5757
/// prevent explosive fan-out.
5858
const MAX_REPARTITION_PARTITIONS: usize = 256;
5959
/// Upper bound for concurrent spill chunk read-ahead when loading partitions.
60-
const SPILL_READAHEAD_BYTES: usize = 64 * 1024 * 1024;
60+
/// Use a generous cap to keep IO saturated while staying well below the
61+
/// per-partition memory budget.
62+
const SPILL_READAHEAD_BYTES: usize = 512 * 1024 * 1024;
6163
/// Below this size we avoid further repartitioning to keep file counts under control.
6264
const MIN_REPARTITION_BYTES: usize = 16 * 1024 * 1024;
6365

0 commit comments

Comments
 (0)