v.19.14Improvement
Better Support of Skip Indexes for Mutations and Replication
Better support of skip indexes for mutations and replication. Support forMATERIALIZE/CLEAR INDEX ... IN PARTITIONquery.UPDATE x = xrecalculates all indices that use columnx. #5053 (Nikita Vasilev)
Why it matters
This feature addresses the need for better management and maintenance of skip indexes during data mutations and replication processes. It allows users to explicitly materialize or clear skip indexes on specific partitions, improving index consistency and query performance. Additionally, automatically recalculating dependent indices on no-op updates ensures index accuracy without additional manual steps.How to use it
Users can run the following queries to manage skip indexes on partitions:MATERIALIZE INDEX index_name IN PARTITION partition_name
CLEAR INDEX index_name IN PARTITION partition_nameTo recalculate all indices that depend on a column
x, execute:UPDATE table_name SET x = x WHERE <condition>This triggers the recalculation of all skip indexes using column
x.