Project

General

Profile

Actions

Bug #13993

closed

"Current Subscription Status" widget gets slower as more orgs are added

Added by Chris Duryee almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The "current subscription status" widget on the dashboard gets extremely slow as more orgs are on the system. Specifically:

https://github.com/Katello/katello/blob/068062449b30e985695aa6071837290e4afbd3df/app/views/dashboard/_subscription_status_widget.html.erb#L5-L9

loops over all orgs to create stub objects, then populates them. This is done one per org, but there is an outer loop that loops over all orgs again, causing extreme slowness (30 sec to render with 100 orgs).

Actions

Also available in: Atom PDF