Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1380486 - free form search is very slow, not excluding installed packages and applicable errata
free form search is very slow, not excluding installed packages and applicabl...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
6.2.0
Unspecified Unspecified
high Severity high (vote)
: 6.2.4
: Unused
Assigned To: satellite6-bugs
jcallaha
: Performance, Triaged
Depends On:
Blocks: 1399395 1385764
  Show dependency treegraph
 
Reported: 2016-09-29 14:12 EDT by Chris Duryee
Modified: 2017-05-10 04:35 EDT (History)
16 users (show)

See Also:
Fixed In Version: tfm-rubygem-katello-3.0.0.82-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1385764 (view as bug list)
Environment:
Last Closed: 2016-11-10 03:14:06 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
verification video (5.89 MB, video/mp4)
2016-11-06 16:27 EST, jcallaha
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 16647 None None None 2016-09-29 14:12 EDT
Red Hat Product Errata RHBA-2016:2699 normal SHIPPED_LIVE Satellite 6.2.4 Async Bug Release 2016-11-10 08:12:22 EST

  None (edit)
Description Chris Duryee 2016-09-29 14:12:43 EDT
Description of problem:

The freeform search can be slow since it includes installed packages and applicable errata by default.

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


Steps to Reproduce:
1. set up a number of hosts that are reporting their installed packages (> 100 hosts at least)
2. use the freeform search box to search for a string

Actual results:

search can take an excessively long time, many seconds


Expected results: search should be reasonably fast


Additional info:

If you see a query like this in the postgres log, it's likely this bug:

2016-09-27 13:34:23 EDT LOG:  duration: 103464.745 ms  execute <unnamed>: SELECT  DISTINCT "hosts"."id", "hosts"."name" AS alias_0 FROM "hosts" LEFT OUTER JOIN "models" ON "models"."id" = "hosts"."model_id" LEFT OUTER JOIN....


the query is extremely long, but will contain references to 'katello_installed_packages'
Comment 3 Bryan Kearney 2016-09-29 16:19:34 EDT
Upstream bug assigned to jsherril@redhat.com
Comment 4 Bryan Kearney 2016-09-29 16:19:37 EDT
Upstream bug component is Other
Comment 5 Bryan Kearney 2016-09-29 16:19:39 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16647 has been resolved.
Comment 13 jcallaha 2016-11-06 16:26:52 EST
Verified in Satellite 6.2.4.

System had 220 content hosts, each with approximately 150 installable errata. Search time did not lag behind, after all errata applicability had been completed (general performance hit during mass registration). Each search was completed well under a second. I will upload a verification video, however the capture didn't turn out well.
Comment 14 jcallaha 2016-11-06 16:27 EST
Created attachment 1217836 [details]
verification video
Comment 16 errata-xmlrpc 2016-11-10 03:14:06 EST
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/RHBA-2016:2699

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