Project

General

Profile

Actions

Bug #13993

closed

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

Added by Chris Duryee about 8 years ago. Updated almost 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 #1

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release set to 86
Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5864 added
Actions #3

Updated by Chris Duryee about 8 years ago

  • Status changed from Ready For Testing to New
  • Bugzilla link set to 1313723
  • Pull request deleted (https://github.com/Katello/katello/pull/5864)

small update: there is only a single org loop, not an inner + outer. it is still way slow though as # of orgs increases:)

Actions #4

Updated by Chris Duryee about 8 years ago

  • Pull request https://github.com/Katello/katello/pull/5864 added
Actions #5

Updated by Chris Duryee about 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Chris Duryee
Actions #6

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
Actions #7

Updated by Chris Duryee about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF