max_parts_in_total
If the total number of active parts in all partitions of a table exceeds themax_parts_in_total value INSERT is interrupted with the Too many parts (N) exception.
Possible values:
- Any positive integer.
max_parts_to_merge_at_once
Max amount of parts which can be merged at once (0 - disabled). Doesn’t affect OPTIMIZE FINAL query. Also lowered automatically when merging that many parts of this table would not fit in memory, seemerge_memory_estimate_per_source_part_column.