-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from bitcoin-sv/db/index-locked-by-status
multi-column index for locked_by and status
- Loading branch information
Showing
2 changed files
with
2 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
database/migrations/metamorph/postgres/000005_status_locked_by_index.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP INDEX idx_metamorph_transactions_locked_by_status; |
1 change: 1 addition & 0 deletions
1
database/migrations/metamorph/postgres/000005_status_locked_by_index.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE INDEX idx_metamorph_transactions_locked_by_status ON metamorph.transactions(locked_by, status); |