Add index on block_number column (#43)

This commit is contained in:
Matt K 2017-11-01 08:52:04 -05:00 committed by ericmeyer
parent c961e85099
commit d2920e7acf
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1 @@
DROP INDEX block_number_index;

View File

@ -0,0 +1 @@
CREATE INDEX block_number_index ON blocks (block_number);

View File

@ -149,6 +149,13 @@ ALTER TABLE ONLY transactions
ADD CONSTRAINT transactions_pkey PRIMARY KEY (id);
--
-- Name: block_number_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX block_number_index ON blocks USING btree (block_number);
--
-- Name: transactions fk_test; Type: FK CONSTRAINT; Schema: public; Owner: -
--