Faster cache lookup by removing a join with the ImagePlacementTable, removing the extra loop to add the locations and filtering the images looked up by the base image
This commit is contained in:
parent
fd65ca5916
commit
e70343d849
3 changed files with 39 additions and 1 deletions
|
@ -104,7 +104,9 @@ class BuildJob(object):
|
|||
return None
|
||||
|
||||
# Build an in-memory tree of the full heirarchy of images in the repository.
|
||||
all_images = model.get_repository_images(repo_namespace, repo_name)
|
||||
all_images = model.get_repository_images_directly(repo_build.repository,
|
||||
with_ancestor=base_image)
|
||||
|
||||
all_tags = model.list_repository_tags(repo_namespace, repo_name)
|
||||
tree = ImageTree(all_images, all_tags, base_filter=base_image.id)
|
||||
|
||||
|
|
Reference in a new issue