Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 603240 - Satellite slow to bring up list of available channels - "select count(*) from rhnavailablechannels;" takes ~15 seconds
Satellite slow to bring up list of available channels - "select count(*) from...
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Justin Sherrill
Jan Hutař
Depends On:
Blocks: sat540-blockers
  Show dependency treegraph
Reported: 2010-06-11 21:00 EDT by Xixi
Modified: 2018-11-02 04:48 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-10-28 10:52:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch for this bug (2.05 KB, application/octet-stream)
2010-07-08 18:49 EDT, Justin Sherrill
no flags Details

  None (edit)
Description Xixi 2010-06-11 21:00:56 EDT
Description of problem:
Customer is running into a problem when bringing up certain parts of the UI.  One example is the Channels section.  Based on a couple of queries on the db he's seeing at least one view that is responding very slowly:
select count(*) from rhnavailablechannels;

This returns a value of 425 but takes 10-15 seconds to complete.  He tried to run this on a separate (non-production) db that has near duplicate data and it at least seems to return much quicker, about 1.5 seconds. 

Another example would be: try running through uploading a package and going through the errata publishing process.  Each step takes a big of time causing errata publishing to take quite a while.
create errata -> attach packages -> publish -> select channels

Version-Release number of selected component (if applicable):
Red Hat Network (RHN) Satellite 5.3.0

How reproducible:
Always (cusotmer db dump avilable).

Steps to Reproduce:
1. Import customer db onto 5.3 Satellite;
2. via sqlplus query "select count(*) from rhnavailablechannels;"
3. click on Channels tab to browse channels section
4. upload package and go through errata publication process

Actual results:
step 2 takes 10-15 seconds
step 3 is slow
step 4 takes about 10 seconds on each stage (I could only see this once though)

Expected results:
Queries/pages return faster.

Additional info:

Rough deployment size indicators -

SQL> select count(*) from rhnServerNeededErrataCache;


SQL> select count(*) from rhnServerNeededCache;


SQL> select count(*) from rhnServer;


SQL> select count(*) from rhnChannel;


SQL> select count(*) from rhnPackage;


SQL> select count(*) from rhnErrata;


SQL> select count(*) from rhnServerpackage;

Comment 3 Justin Sherrill 2010-07-08 13:01:45 EDT
Taking a look at this.
Comment 4 Justin Sherrill 2010-07-08 18:48:14 EDT
Ok, i think should be fixed now:

spacewalk master:

Since this is a view change, we cannot release it for everyone via the errata process, but there is no harm in teh customer applying a one-off fix.  It should not affect upgrades either.

Will attach upgrade script for the customer.
Comment 5 Justin Sherrill 2010-07-08 18:49:22 EDT
Created attachment 430497 [details]
Patch for this bug
Comment 6 Justin Sherrill 2010-07-08 18:50:38 EDT
To apply the patch simply download it and run:

sqlplus rhnsat/rhnsat@rhnsat   @rhnAvailableChannels.sql

(assuming the db connect string is rhnsat/rhnsat@rhnsat). 

The database will need to be running while this is run.
Comment 17 Clifford Perry 2010-10-28 10:47:45 EDT
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 

RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade

RHEA-2010:0803 - RHN Tools enhancement update

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update

RHEA-2010:0800 - RHN Satellite Server 5.4.0

Docs are available:



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