Skip to content

Commit 3da8ca1

Browse files
Minmax indices by default
1 parent 99b946c commit 3da8ca1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Core/SettingsChangesHistory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ const VersionToSettingsChangesMap & getMergeTreeSettingsChangesHistory()
663663
addSettingsChanges(merge_tree_settings_changes_history, "25.3",
664664
{
665665
{"shared_merge_tree_enable_keeper_parts_extra_data", false, false, "New setting"},
666+
{"add_minmax_index_for_numeric_columns", false, true, "Should give benefits."},
666667
});
667668
addSettingsChanges(merge_tree_settings_changes_history, "25.2",
668669
{

src/Storages/MergeTree/MergeTreeSettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ namespace ErrorCodes
261261
DECLARE(Bool, disable_fetch_partition_for_zero_copy_replication, true, "Disable FETCH PARTITION query for zero copy replication.", 0) \
262262
DECLARE(Bool, enable_block_number_column, false, "Enable persisting column _block_number for each row.", 0) ALIAS(allow_experimental_block_number_column) \
263263
DECLARE(Bool, enable_block_offset_column, false, "Enable persisting column _block_offset for each row.", 0) \
264-
DECLARE(Bool, add_minmax_index_for_numeric_columns, false, "Automatically create min-max indices for columns of numeric type", 0) \
264+
DECLARE(Bool, add_minmax_index_for_numeric_columns, true, "Automatically create min-max indices for columns of numeric type", 0) \
265265
DECLARE(Bool, add_minmax_index_for_string_columns, false, "Automatically create min-max indices for columns of string type", 0) \
266266
\
267267
/** Experimental/work in progress feature. Unsafe for production. */ \

0 commit comments

Comments
 (0)