-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control: advisory locks => SELECT ... WITH UPDATE SKIP LOCKED
Also add an index on builds.account_id.
- Loading branch information
1 parent
9b1c28e
commit fc1706c
Showing
4 changed files
with
55 additions
and
80 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
crates/control/migrations/20220303214925_create_builds.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
DROP INDEX builds_id_where_queued; | ||
|
||
DROP INDEX builds_account_id; | ||
|
||
DROP TABLE builds; |
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
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
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