v.23.5Improvement
Added Settings for Delaying or Throwing ALTER Queries in ClickHouse
Added settings (number_of_mutations_to_delay,number_of_mutations_to_throw) to delay or throwALTERqueries that create mutations (ALTER UPDATE,ALTER DELETE,ALTER MODIFY COLUMN, ...) in case when table already has a lot of unfinished mutations. #49117 (Anton Popov).
Why it matters
These settings help prevent performance degradation and excessive mutation backlog by delaying or rejecting newALTER UPDATE, ALTER DELETE, ALTER MODIFY COLUMN, and similar mutation-creating queries when a table already has many unfinished mutations.How to use it
Set the values ofnumber_of_mutations_to_delay and number_of_mutations_to_throw in the server configuration or session to specify thresholds for delaying or throwing ALTER mutation queries. When the number of unfinished mutations exceeds these thresholds, new mutation queries will be delayed or blocked accordingly.