Skip to content

Commit

Permalink
CORE-16323: Improve State Manager Index
Browse files Browse the repository at this point in the history
Update recently introduced index so it uses both the "key" and
"version" columns as both are used by the State Manager during update
and delete queries.
  • Loading branch information
jujoramos committed Oct 12, 2023
1 parent c781f5f commit a73927f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
<constraints nullable="false"/>
</column>
</createTable>
<createIndex tableName="state" indexName="state_version_idx">
<createIndex tableName="state" indexName="state_key_version_idx">
<column name="key"/>
<column name="version"/>
</createIndex>
<addPrimaryKey columnNames="key" constraintName="state_key" tableName="state"/>
Expand Down

0 comments on commit a73927f

Please sign in to comment.