Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1221690

Summary: The product page is loading very slowly on Satellite 6
Product: Red Hat Satellite Reporter: Kenny Tordeurs <ktordeur>
Component: WebUIAssignee: Katello Bug Bin <katello-bugs>
WebUI sub component: Katello QA Contact: Katello QA List <katello-qa-list>
Status: CLOSED DUPLICATE Docs Contact:
Severity: urgent    
Priority: urgent CC: katello-bugs, marcobillpeter, mklika, pmoravec, walden
Version: 6.0.8   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-15 15:30:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kenny Tordeurs 2015-05-14 14:50:47 UTC
Created attachment 1025460 [details]
foreman-debug

Description of problem:
Opening the Products page takes about 3min for 22 Products,then scrolling takes another 3min

Version-Release number of selected component (if applicable):
Satellite 6

How reproducible:
Every time.

Steps to Reproduce:
Try to visit Product page with >=22 products

Actual results:
The products page loads very slowly.


Expected results:
It should be faster, this system has 4vCPU's and 16GB of RAM assigned.

Additional info:
number of database selects per tables (2nd column is table name, 1st is number of selects):

$ grep SELECT select | cut -d\" -f4 | sort | uniq -c | sort -n
      1 users
     95 katello_sync_plans
    107 katello_providers
    172 katello_task_statuses
    184 katello_products
    254 katello_content_views
   1683 katello_content_view_versions
   1691 taxonomies
   4346 katello_repositories
  34586 katello_environments
$

Various selects of katello_environments (sorting WHERE clauses):

$ sort katello_environments.txt | uniq -c | sort -n
..
    637  "katello_content_view_environments"."content_view_version_id" = 118
    637  "katello_content_view_environments"."content_view_version_id" = 57
..
    639  "katello_content_view_environments"."content_view_version_id" = 52
    639  "katello_content_view_environments"."content_view_version_id" = 53
$

Removing redundant content views / versions would speed up the listing.

Comment 1 RHEL Program Management 2015-05-14 15:02:39 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 5 Walden Raines 2015-05-15 15:30:44 UTC
Duplicate of bug #1171173.

*** This bug has been marked as a duplicate of bug 1171173 ***

Comment 6 Red Hat Bugzilla 2023-09-14 02:59:12 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days