Skip to content

Commit

Permalink
Fixes #36850 - Add indexes to speed up (#10773)
Browse files Browse the repository at this point in the history
applicability calculation when there are
  lots of module streams installed
  • Loading branch information
jeremylenz authored Nov 9, 2023
1 parent 82043dc commit d2baeb2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class CreateIndexesForNvraAndEpoch < ActiveRecord::Migration[6.1]
def change
add_index :katello_installed_packages, :nvra
add_index :katello_installed_packages, [:nvra, :epoch]
end
end

0 comments on commit d2baeb2

Please sign in to comment.