-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #36943 - reduce the amount of queries to get the errata counts #10810
Conversation
foreman rake benchmark for about 80 hosts. Old
New:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like bugfix and security got swapped
:security => applicable_errata.security.count, | ||
:bugfix => applicable_errata.bugfix.count, | ||
:enhancement => applicable_errata.enhancement.count | ||
:bugfix => applicable_errata_counts.values_at(*Katello::Erratum::SECURITY).compact.sum, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:bugfix => applicable_errata_counts.values_at(*Katello::Erratum::SECURITY).compact.sum, | |
:security => applicable_errata_counts.values_at(*Katello::Erratum::SECURITY).compact.sum, |
[test katello] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, just need the tests to pass.
@ianballou good eye! I missed that. Tests are now green. |
Loading the all hosts page (http://myforeman/hosts) with about 72 hosts.