From 6cb552a8b4f4ad0336ab31c8143ba2c0986846d3 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Sat, 21 Oct 2023 10:56:14 +0200 Subject: [PATCH] add index idx_blocks_slot_errors --- migration.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration.sql b/migration.sql index fdea41e..5ecd2b3 100644 --- a/migration.sql +++ b/migration.sql @@ -31,8 +31,10 @@ CREATE INDEX idx_blocks_slot ON banking_stage_results.blocks(slot); -- optional CLUSTER banking_stage_results.blocks using idx_blocks_slot; VACUUM FULL banking_stage_results.blocks; +CREATE INDEX idx_blocks_slot_errors ON banking_stage_results.blocks(slot) WHERE banking_stage_errors > 0; CREATE INDEX idx_transaction_infos_timestamp ON banking_stage_results.transaction_infos(utc_timestamp); -- optional CLUSTER banking_stage_results.transaction_infos using idx_transaction_infos_timestamp; VACUUM FULL banking_stage_results.transaction_infos; +