Merge pull request #72555 from ClickHouse/raise_default_for_prealloc_in_ht_optimisation

Raise defaults for preallocation in HTs optimisation
This commit is contained in:
Nikita Taranov 2024-11-28 23:20:48 +00:00 committed by GitHub
commit 523d3b4af7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -4312,14 +4312,14 @@ Result:
DECLARE(Bool, collect_hash_table_stats_during_aggregation, true, R"(
Enable collecting hash table statistics to optimize memory allocation
)", 0) \
DECLARE(UInt64, max_size_to_preallocate_for_aggregation, 100'000'000, R"(
DECLARE(UInt64, max_size_to_preallocate_for_aggregation, 1'000'000'000'000, R"(
For how many elements it is allowed to preallocate space in all hash tables in total before aggregation
)", 0) \
\
DECLARE(Bool, collect_hash_table_stats_during_joins, true, R"(
Enable collecting hash table statistics to optimize memory allocation
)", 0) \
DECLARE(UInt64, max_size_to_preallocate_for_joins, 100'000'000, R"(
DECLARE(UInt64, max_size_to_preallocate_for_joins, 1'000'000'000'000, R"(
For how many elements it is allowed to preallocate space in all hash tables in total before join
)", 0) \
\

View File

@ -60,6 +60,8 @@ static std::initializer_list<std::pair<ClickHouseVersion, SettingsChangesHistory
{
{"24.12",
{
{"max_size_to_preallocate_for_aggregation", 100'000'000, 1'000'000'000'000, "Enable optimisation for bigger tables."},
{"max_size_to_preallocate_for_joins", 100'000'000, 1'000'000'000'000, "Enable optimisation for bigger tables."},
{"parallel_replicas_index_analysis_only_on_coordinator", false, true, "Index analysis done only on replica-coordinator and skipped on other replicas. Effective only with enabled parallel_replicas_local_plan"},
{"use_async_executor_for_materialized_views", false, false, "New setting."},
}