Actions
Bug #16238
closeddashboard widget for latests events can be exteramlly slow
Description
when having many hosts, the latest event widget can take around a minute to load.
the line in question is most likely the issue:
def latest_events # 9 reports + header fits the events box nicely... @latest_events ||= ConfigReport.authorized(:view_config_reports).my_reports.interesting.where(:host_id => hosts.pluck(:id)).search_for('reported > "7 days ago"').limit(9).includes(:host) end
Updated by Ohad Levy over 8 years ago
- Related to Bug #16044: Errors in individual dashboard widgets fail entire page added
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ohad Levy
- Pull request https://github.com/theforeman/foreman/pull/3764 added
Updated by Ohad Levy over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Updated by Dominic Cleal over 8 years ago
- Related to Bug #16627: Puppet general tab new error on 1.12.3 added
Updated by Dominic Cleal over 8 years ago
- Related to Bug #16704: Searching fails on dashboard added
Updated by Ohad Levy about 8 years ago
- Related to Bug #18893: dashboard widget for puppet report latest events can be very slow on large amount of reports added
Actions