Skip to content

Commit

Permalink
Add index on quorum_proposals.leaf_hash (#2208)
Browse files Browse the repository at this point in the history
We look up by this column during state reconstruction, so we should
probably index it. The unique index will also prevent us from inserting
quorum proposals with different views but the same hash, which should not
be possible and would be a logic error if it happened.
  • Loading branch information
jbearer authored Oct 24, 2024
1 parent 2c1267c commit ee6f7d4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE UNIQUE INDEX quorum_proposals_leaf_hash_idx ON quorum_proposals (leaf_hash);

0 comments on commit ee6f7d4

Please sign in to comment.