Skip to content

Commit 008485a

Browse files
authored
chore(settings): enable spill (#16888)
1 parent 5ea43ff commit 008485a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/query/settings/src/settings_default.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl DefaultSettings {
288288
range: Some(SettingRange::Numeric(0..=1)),
289289
}),
290290
("join_spilling_memory_ratio", DefaultSettingValue {
291-
value: UserSettingValue::UInt64(0),
291+
value: UserSettingValue::UInt64(60),
292292
desc: "Sets the maximum memory ratio in bytes that hash join can use before spilling data to storage during query execution, 0 is unlimited",
293293
mode: SettingMode::Both,
294294
range: Some(SettingRange::Numeric(0..=100)),
@@ -463,7 +463,7 @@ impl DefaultSettings {
463463
range: Some(SettingRange::Numeric(0..=u64::MAX)),
464464
}),
465465
("aggregate_spilling_memory_ratio", DefaultSettingValue {
466-
value: UserSettingValue::UInt64(0),
466+
value: UserSettingValue::UInt64(60),
467467
desc: "Sets the maximum memory ratio in bytes that an aggregator can use before spilling data to storage during query execution.",
468468
mode: SettingMode::Both,
469469
range: Some(SettingRange::Numeric(0..=100)),
@@ -475,7 +475,7 @@ impl DefaultSettings {
475475
range: Some(SettingRange::Numeric(0..=u64::MAX)),
476476
}),
477477
("window_partition_spilling_memory_ratio", DefaultSettingValue {
478-
value: UserSettingValue::UInt64(0),
478+
value: UserSettingValue::UInt64(60),
479479
desc: "Sets the maximum memory ratio in bytes that a window partitioner can use before spilling data to storage during query execution.",
480480
mode: SettingMode::Both,
481481
range: Some(SettingRange::Numeric(0..=100)),
@@ -511,7 +511,7 @@ impl DefaultSettings {
511511
range: Some(SettingRange::Numeric(0..=u64::MAX)),
512512
}),
513513
("sort_spilling_memory_ratio", DefaultSettingValue {
514-
value: UserSettingValue::UInt64(0),
514+
value: UserSettingValue::UInt64(60),
515515
desc: "Sets the maximum memory ratio in bytes that a sorter can use before spilling data to storage during query execution.",
516516
mode: SettingMode::Both,
517517
range: Some(SettingRange::Numeric(0..=100)),

0 commit comments

Comments
 (0)