Hello,
I think @Bernhard_Suttner is right, I was still using an older patch…
So, i just rollback everything - dnf reinstall rubygem-katello-4.11.0-1.el8.noarch, and applied the changes on this pull request:
- Fixes #37109 - allow to use eager loading on latest_version_object by sbernhard · Pull Request #10865 · Katello/katello · GitHub
- on file content_view.rb add add
has_one :latest_version_object, -> { latest }, :class_name => "Katello::ContentViewVersion", :dependent => :destroy - on file content_view_version.rb add
scope :latest, -> { order('major DESC', 'minor DESC').limit(1) }
After this, listing content views with hammer timeout after 4 minutes and using the interface it takes almost 6 minutes to finish loading the page. The listing includes the correct latest version.
So it’s slow again… I’ll have to find out which change made this fast and applied it again.