Skip to content

Commit

Permalink
storage: add roothash messages indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Feb 15, 2024
1 parent 38b4037 commit 47acaeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions storage/migrations/08_roothash.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ CREATE TABLE chain.roothash_messages (
result BYTEA,
related_accounts oasis_addr[]
);
CREATE INDEX ix_roothash_messages_type
ON chain.roothash_messages (type);
CREATE INDEX ix_roothash_messages_related_accounts
ON chain.roothash_messages
USING gin(related_accounts);

COMMIT;

0 comments on commit 47acaeb

Please sign in to comment.