Project

General

Profile

Bug #29543

AddDockerTagJoinTable and AddDockerMetaTagJoinTable migrations take too long

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

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

History

#1 Updated by Ian Ballou about 2 years ago

After a test with ~8.5k repos, the migration was significantly faster when only migrating Repository.docker_type

#2 Updated by Jonathon Turel about 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello Recycle Bin
  • Status changed from New to Rejected

Also available in: Atom PDF