From 24fddc56f608217defcb53f8c9389905140fa3ce Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Mon, 17 Jun 2024 13:50:02 -0400 Subject: [PATCH] add index on maturity height to speed up updateMaturedBalances --- persist/sqlite/init.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/persist/sqlite/init.sql b/persist/sqlite/init.sql index 37c89aea..ca2009ff 100644 --- a/persist/sqlite/init.sql +++ b/persist/sqlite/init.sql @@ -53,6 +53,7 @@ CREATE TABLE siacoin_elements ( value BLOB NOT NULL ); +CREATE INDEX siacoin_elements_maturity_height_index ON siacoin_elements(maturity_height); CREATE INDEX siacoin_elements_output_id_index ON siacoin_elements(output_id); CREATE INDEX siacoin_elements_address_spent_index ON siacoin_elements(address, spent);