split out new post-batch migration for indexes that will accelerate our logTrie repair process
This commit is contained in:
parent
3fb695c1e6
commit
4ad1250ea1
@ -0,0 +1,15 @@
|
||||
-- +goose Up
|
||||
CREATE INDEX log_mh_index_index ON eth.log_cids USING btree (leaf_mh_key);
|
||||
CREATE INDEX block_number_index ON eth.header_cids USING brin (block_number);
|
||||
CREATE INDEX header_hash_index ON eth.header_cids USING btree (block_hash);
|
||||
CREATE INDEX tx_header_hash_index ON eth.transaction_cids USING btree (header_id);
|
||||
CREATE INDEX transaction_hash_index ON eth.transaction_cids USING btree (tx_hash);
|
||||
CREATE INDEX log_tx_hash_index ON eth.log_cids USING btree (rct_id);
|
||||
|
||||
-- +goose Down
|
||||
DROP INDEX eth.log_tx_hash_index;
|
||||
DROP INDEX eth.transaction_hash_index;
|
||||
DROP INDEX eth.tx_header_hash_index;
|
||||
DROP INDEX eth.header_hash_index;
|
||||
DROP INDEX eth.block_number_index;
|
||||
DROP INDEX eth.log_mh_index_index;
|
Loading…
Reference in New Issue
Block a user