v.23.12Performance Improvement
MergeTree Auto-Derives do_not_merge_across_partitions_select_final Setting for Primary Key Columns
MergeTree automatically derive do_not_merge_across_partitions_select_final setting if partition key expression contains only columns from primary key expression. #58218 (Maksim Kita).