Skip to content

Commit

Permalink
CORE-16323: Improve State Manager Index (#1296)
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 authored Oct 12, 2023
1 parent c781f5f commit c5788ec
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 c5788ec

Please sign in to comment.