From fb5d133269c5a569ff48e13fd2e8e0a64434a2ad Mon Sep 17 00:00:00 2001 From: Sergey Skvortsov Date: Sat, 18 Jun 2022 02:11:25 +0300 Subject: [PATCH] fix: Tune default limits on the number of buckets --- src/Core/Settings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Settings.h b/src/Core/Settings.h index b0fd8f49f2a..7118cc3bc46 100644 --- a/src/Core/Settings.h +++ b/src/Core/Settings.h @@ -600,8 +600,8 @@ static constexpr UInt64 operator""_GiB(unsigned long long value) M(TransactionsWaitCSNMode, wait_changes_become_visible_after_commit_mode, TransactionsWaitCSNMode::WAIT_UNKNOWN, "Wait for committed changes to become actually visible in the latest snapshot", 0) \ M(Bool, throw_if_no_data_to_insert, true, "Enables or disables empty INSERTs, enabled by default", 0) \ M(Bool, compatibility_ignore_auto_increment_in_create_table, false, "Ignore AUTO_INCREMENT keyword in column declaration if true, otherwise return error. It simplifies migration from MySQL", 0) \ - M(UInt64, grace_hash_join_initial_buckets, 256, "Initial number of grace hash join buckets", 0) \ - M(UInt64, grace_hash_join_max_buckets, 65536, "Limit on the number of grace hash join buckets", 0) \ + M(UInt64, grace_hash_join_initial_buckets, 32, "Initial number of grace hash join buckets", 0) \ + M(UInt64, grace_hash_join_max_buckets, 1024, "Limit on the number of grace hash join buckets", 0) \ M(UInt64, grace_hash_join_buffer_size, DBMS_DEFAULT_BUFFER_SIZE, "Buffer size for grace hash join temporary files. It makes sense to use smaller values, especially for SSDs, to save memory", 0) \ // End of COMMON_SETTINGS // Please add settings related to formats into the FORMAT_FACTORY_SETTINGS and move obsolete settings to OBSOLETE_SETTINGS.