From cb15d4ff4f662c42011496b1da8ef3f631edbb64 Mon Sep 17 00:00:00 2001 From: Taaseen Ali Date: Mon, 26 Jul 2021 22:08:09 -0400 Subject: [PATCH] Harpoon operations index (#984) * added new baking/endorsing rights indexes * added block level, delegate index * corrected index * corrected comment --- sql/conseil.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sql/conseil.sql b/sql/conseil.sql index 4546cfd09..38eb44769 100644 --- a/sql/conseil.sql +++ b/sql/conseil.sql @@ -706,6 +706,13 @@ CREATE INDEX ix_balance_updates_account_id ON tezos.balance_updates USING btree CREATE INDEX ix_balance_updates_block_level ON tezos.balance_updates USING btree (block_level); +-- Index: ix_operations_block_level_delegate + +CREATE INDEX ix_operations_block_level_delegate + ON tezos.operations USING btree + (level ASC NULLS LAST, delegate COLLATE pg_catalog."default" ASC NULLS LAST) + TABLESPACE pg_default; + -- -- Name: accounts accounts_block_id_fkey; Type: FK CONSTRAINT; Schema: tezos; Owner: - --