-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atc: resolve pinned versions earlier
By resolving the pinned version to IDs earlier, we can run those queries only once before the algorithm rather than having to run the query multiple times if we put it in the algorithm. [#3602] Signed-off-by: Clara Fu <cfu@pivotal.io> Co-authored-by: Rui Yang <ryang@pivotal.io>
- Loading branch information
Showing
6 changed files
with
105 additions
and
77 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
atc/db/migration/migrations/1559071366_add_to_build_id_index_to_build_pipes.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,5 @@ | ||
BEGIN; | ||
DROP INDEX build_pipes_to_build_id_idx; | ||
|
||
DROP INDEX build_resource_config_version_inputs_version_md5_idx; | ||
COMMIT; |
5 changes: 5 additions & 0 deletions
5
atc/db/migration/migrations/1559071366_add_to_build_id_index_to_build_pipes.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,5 @@ | ||
BEGIN; | ||
CREATE INDEX build_pipes_to_build_id_idx ON build_pipes (to_build_id); | ||
|
||
CREATE INDEX build_resource_config_version_inputs_version_md5_idx ON build_resource_config_version_inputs (version_md5); | ||
COMMIT; |
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
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