16 lines
692 B
SQL
16 lines
692 B
SQL
-- +goose Up
|
|
CREATE INDEX log_mh_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_block_hash_index ON eth.header_cids USING btree (block_hash);
|
|
CREATE INDEX tx_header_id_index ON eth.transaction_cids USING btree (header_id);
|
|
CREATE INDEX tx_tx_hash_index ON eth.transaction_cids USING btree (tx_hash);
|
|
CREATE INDEX log_cids_index ON eth.log_cids USING btree (rct_id, index);
|
|
|
|
-- +goose Down
|
|
DROP INDEX eth.log_cids_index;
|
|
DROP INDEX eth.tx_tx_hash_index;
|
|
DROP INDEX eth.tx_header_id_index;
|
|
DROP INDEX eth.header_block_hash_index;
|
|
DROP INDEX eth.block_number_index;
|
|
DROP INDEX eth.log_mh_index;
|