v.25.7New Feature
Add support for lightweight updates for MergeTree-family
Added support for lightweight updates forMergeTree-family tables. Lightweight updates can be used by a new syntax:UPDATE <table> SET col1 = val1, col2 = val2, ... WHERE <condition>. Added implementation of lightweight deletes via lightweight updates. It can be enabled by settinglightweight_delete_mode = 'lightweight_update'. #82004 (Anton Popov).
Why it matters
This feature addresses the need for efficient row-level updates and deletes inMergeTree-family tables without heavy overhead. It simplifies data modification by enabling lightweight updates that optimize performance and reduce resource consumption compared to traditional methods.How to use it
Use the newUPDATE syntax as follows:UPDATE <table> SET col1 = val1, col2 = val2, ... WHERE <condition>To enable lightweight deletes via lightweight updates, set the table setting
lightweight_delete_mode to 'lightweight_update'.