v.23.11Improvement
Implement Asynchronous Execution for ALTER TABLE Partition Moves in ClickHouse
Implement user-level settingalter_move_to_space_execute_asyncwhich allow to execute queriesALTER TABLE ... MOVE PARTITION|PART TO DISK|VOLUMEasynchronously. The size of pool for background executions is controlled bybackground_move_pool_size. Default behavior is synchronous execution. Fixes #47643. #56809 (alesapin).
Why it matters
This feature addresses the problem of long-runningALTER TABLE ... MOVE PARTITION|PART TO DISK|VOLUME queries blocking the client session by allowing these operations to be executed asynchronously in the background. It improves user experience and system responsiveness by offloading heavy data movement tasks, controlled via a background execution pool.How to use it
To enable asynchronous execution of MOVE PARTITION or MOVE PART operations, set the user-level setting:SET alter_move_to_space_execute_async = 1;The concurrency of background moves is managed by the
background_move_pool_size setting. By default, execution is synchronous.