Skip to content

Commit

Permalink
add index for faster query to refballot
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak committed Sep 19, 2023
1 parent 27c3dd7 commit 2f4dcf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/migrations/0004_next.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DELETE FROM proposals;
DELETE FROM proposal_transactions;
UPDATE certificates SET cert = NULL WHERE layer < 19000;
UPDATE certificates SET cert = NULL WHERE layer < 19000;
CREATE INDEX ballots_by_atx_by_layer ON ballots (atx, layer asc);

0 comments on commit 2f4dcf9

Please sign in to comment.