Skip to content

Commit

Permalink
CORE-16323: Add Index on State Version Column
Browse files Browse the repository at this point in the history
Add index on the version field to improve optimistic locking checks.
  • Loading branch information
jujoramos committed Oct 12, 2023
1 parent c8af85b commit 7d567b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<constraints nullable="false"/>
</column>
</createTable>
<createIndex tableName="state" indexName="state_version_idx">
<column name="version"/>
</createIndex>
<addPrimaryKey columnNames="key" constraintName="state_key" tableName="state"/>
</changeSet>
</databaseChangeLog>

0 comments on commit 7d567b4

Please sign in to comment.