forked from cerc-io/ipld-eth-server
Add indices for tx_to and tx_from (#112)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP INDEX tx_to_index;
|
||||
@@ -0,0 +1 @@
|
||||
CREATE INDEX tx_to_index ON transactions(tx_to);
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX tx_from_index;
|
||||
@@ -0,0 +1 @@
|
||||
CREATE INDEX tx_from_index ON transactions(tx_from);
|
||||
@@ -353,6 +353,20 @@ CREATE INDEX block_number_index ON blocks USING btree (block_number);
|
||||
CREATE INDEX node_id_index ON blocks USING btree (node_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: tx_from_index; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX tx_from_index ON transactions USING btree (tx_from);
|
||||
|
||||
|
||||
--
|
||||
-- Name: tx_to_index; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX tx_to_index ON transactions USING btree (tx_to);
|
||||
|
||||
|
||||
--
|
||||
-- Name: transactions blocks_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user