[YSQL] UPDATE table SET sec_index_key_col = <unmodified> causes unnecessary writes #19305
Closed
1 task done
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-8116
Description
Consider a table with the following schema:
bar
has two secondary indexes: on v1, and on (v2, v3).Consider the following
UPDATE
queries. They do not update the values in any of (v1, v2, v3).In all of the above cases, both indexes are updated (DELETE + INSERT), although neither index needs to be updated.
The
DELETE + INSERT
combo needs two flushes, which further exacerbates the problem.The issue seeks to resolve the redundant update to the secondary indexes.
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: