From bf7b4eb6275eade77718f4f55bd5a99dee973584 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Tue, 18 Apr 2023 14:55:37 +0800 Subject: [PATCH] add index col to uncle_cids index --- db/migrations/00012_create_cid_indexes.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrations/00012_create_cid_indexes.sql b/db/migrations/00012_create_cid_indexes.sql index 755c1b6..15140d0 100644 --- a/db/migrations/00012_create_cid_indexes.sql +++ b/db/migrations/00012_create_cid_indexes.sql @@ -7,7 +7,7 @@ CREATE INDEX timestamp_index ON eth.header_cids USING btree (timestamp); -- uncle indexes CREATE INDEX uncle_block_number_index ON eth.uncle_cids USING btree (block_number); -CREATE UNIQUE INDEX uncle_cid_block_number_index ON eth.uncle_cids USING btree (cid, block_number); +CREATE UNIQUE INDEX uncle_cid_block_number_index ON eth.uncle_cids USING btree (cid, block_number, index); CREATE INDEX uncle_header_id_index ON eth.uncle_cids USING btree (header_id); -- transaction indexes