Bug 1522940 - Content view versions page is slow and makes the same API call twice
Summary: Content view versions page is slow and makes the same API call twice
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: satellite6-bugs
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-06 19:13 UTC by Eric Helms
Modified: 2021-12-10 15:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:15:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot of load times (225.83 KB, image/png)
2017-12-06 19:13 UTC, Eric Helms
no flags Details
verification screenshot (253.68 KB, image/png)
2018-07-18 20:44 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23432 0 Normal Closed content view ui pages call repositories index api twice 2019-12-17 11:21:18 UTC
Red Hat Knowledge Base (Solution) 3440821 0 None None None 2018-06-19 05:56:28 UTC

Description Eric Helms 2017-12-06 19:13:09 UTC
Created attachment 1363875 [details]
Screenshot of load times

Description of problem:

In 6.3 Beta, the content view versions page is slow taking close to 18 seconds to load 20 entries. There is also two calls made to the same API endpoint (see screenshot for timings and double API calls. We see this on our dogfood Satellite.

Comment 2 Brad Buckingham 2017-12-08 16:06:21 UTC
Is this a regression to 6.2?

Comment 3 Eric Helms 2017-12-14 13:28:02 UTC
In 6.2, this was even slower, so it has sped up "some" but it's still painfully, go get some coffee slow. I believe the two API calls are a regression and probably contribute to the slowness.

Comment 6 Samir Jha 2018-05-18 15:06:16 UTC
The same issue was present in the following places and should be fixed:
**CV >** 
* Versions
* Yum Content -> Repositories
  * Add
  * Available
* Apt Repo
  * Add 
  * Available
* File Repo
  * Add 
  * Available
* Docker> Repo
  * Add 
  * Available
* OSTree
  * Add 
  * Available

**CV>Version>**
* Yum Repo
* RPM Package
* Errata
* Apt Repositories
* Deb Packages

Moving to POST

Comment 7 jcallaha 2018-07-18 20:42:03 UTC
Verified in Satellite 6.4 Snap 12.

The content views page load average is now around 6.5-7.0 seconds. Also, the page no longer hits the API twice per load. See attachment for verification.

Additionally, I checked all the pages (except apt-related) in comment #6 and they loaded without the duplicates.

Comment 8 jcallaha 2018-07-18 20:44:32 UTC
Created attachment 1459801 [details]
verification screenshot

Comment 9 Bryan Kearney 2018-10-16 19:15:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


Note You need to log in before you can comment on or make changes to this bug.