From 0404fb159935f361d31cbde31720f2f22cfef060 Mon Sep 17 00:00:00 2001 From: Warren He Date: Fri, 26 Jan 2024 17:03:32 -0800 Subject: [PATCH] storage: add roothash messages indexes --- storage/migrations/07_roothash.up.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/storage/migrations/07_roothash.up.sql b/storage/migrations/07_roothash.up.sql index 5b9a28b50..624d7f390 100644 --- a/storage/migrations/07_roothash.up.sql +++ b/storage/migrations/07_roothash.up.sql @@ -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;