Skip to content

Commit

Permalink
add index on maturity height to speed up updateMaturedBalances
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Jun 17, 2024
1 parent d71f0b6 commit 24fddc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions persist/sqlite/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 24fddc5

Please sign in to comment.