v.20.1Improvement
Add mutations_sync setting for synchronous ALTER UPDATE/DELETE queries
Add settingmutations_syncwhich allows to waitALTER UPDATE/DELETEqueries synchronously. #8237 (alesapin)
Why it matters
This feature enables users to wait forALTER UPDATE and ALTER DELETE mutations to complete before proceeding, ensuring that data modifications are fully applied. This solves the problem of asynchronous mutations which may delay visibility of changes, providing better consistency and control for query workflows.How to use it
To use this feature, set themutations_sync setting to true for your session or query. For example:SET mutations_sync = 1;
ALTER TABLE table_name UPDATE column = value WHERE condition;This will make the
ALTER UPDATE or ALTER DELETE query wait until the mutation is fully applied.