Optimise missing block numbers query (#23)

This commit is contained in:
Edvard Hübinette
2019-03-05 11:52:38 +01:00
committed by GitHub
parent 6ff67f26d1
commit 55b6ad9381
3 changed files with 18 additions and 9 deletions
+8 -1
View File
@@ -3,7 +3,7 @@
--
-- Dumped from database version 10.5
-- Dumped by pg_dump version 10.4
-- Dumped by pg_dump version 10.5
SET statement_timeout = 0;
SET lock_timeout = 0;
@@ -710,6 +710,13 @@ CREATE INDEX block_id_index ON public.transactions USING btree (block_id);
CREATE INDEX block_number_index ON public.blocks USING btree (number);
--
-- Name: headers_block_number; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX headers_block_number ON public.headers USING btree (block_number);
--
-- Name: node_id_index; Type: INDEX; Schema: public; Owner: -
--