Project

General

Profile

Actions

Bug #29543

closed

AddDockerTagJoinTable and AddDockerMetaTagJoinTable migrations take too long

Added by Ian Ballou about 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

For environments with a large number of repos, this migration takes a long time even if there aren't any docker tags. I believe it's due to the block that runs through each repo and updates its tags/meta_tags. We could probably query instead for the repositories that have tags and update those.

Reference: https://github.com/Katello/katello/blob/master/db/migrate/20190730183518_add_docker_tag_join_table.rb#L9

Actions

Also available in: Atom PDF