Skip to content

Commit 8f0622c

Browse files
committed
fix: improve perf of GetValidatorDepositsAndIncomingConsolidations, add idx_blocks_deposit_requests_v2_pubkey
1 parent 12ee39e commit 8f0622c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- +goose NO TRANSACTION
2+
3+
-- +goose Up
4+
SELECT 'create idx_blocks_deposit_requests_v2_pubkey';
5+
-- +goose StatementBegin
6+
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_blocks_deposit_requests_v2_pubkey ON blocks_deposit_requests_v2 (pubkey);
7+
-- +goose StatementEnd
8+
9+
-- +goose Down
10+
SELECT 'drop idx_blocks_deposit_requests_v2_pubkey';
11+
-- +goose StatementBegin
12+
DROP INDEX CONCURRENTLY IF EXISTS idx_blocks_deposit_requests_v2_pubkey;
13+
-- +goose StatementEnd

0 commit comments

Comments
 (0)