Skip to content

Commit

Permalink
add database indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriptikz committed Aug 15, 2024
1 parent 87187a5 commit 5a0e2af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/2024-08-15-041437_idx_challenge/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE challenges DROP INDEX idx_challenge
1 change: 1 addition & 0 deletions migrations/2024-08-15-041437_idx_challenge/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX idx_challenge ON challenges (challenge)
1 change: 1 addition & 0 deletions migrations/2024-08-15-041901_idx_miner_pubkey/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE miners DROP INDEX idx_miner_pubkey
1 change: 1 addition & 0 deletions migrations/2024-08-15-041901_idx_miner_pubkey/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX idx_miner_pubkey ON miners (pubkey)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE submissions DROP INDEX idx_submissions_nonce
1 change: 1 addition & 0 deletions migrations/2024-08-15-042349_idx_submissions_nonce/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX idx_submissions_nonce ON submissions (nonce)

0 comments on commit 5a0e2af

Please sign in to comment.