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 1380486 - free form search is very slow, not excluding installed packages and applicable errata
Summary: free form search is very slow, not excluding installed packages and applicabl...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks: 1385764 1399395
TreeView+ depends on / blocked
 
Reported: 2016-09-29 18:12 UTC by Chris Duryee
Modified: 2020-01-17 15:59 UTC (History)
16 users (show)

Fixed In Version: tfm-rubygem-katello-3.0.0.82-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1385764 (view as bug list)
Environment:
Last Closed: 2016-11-10 08:14:06 UTC
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16647 0 Normal Closed free form search is very slow, not excluding installed packages and applicable errata 2020-05-15 09:03:03 UTC
Red Hat Product Errata RHBA-2016:2699 0 normal SHIPPED_LIVE Satellite 6.2.4 Async Bug Release 2016-11-10 13:12:22 UTC

Description Chris Duryee 2016-09-29 18:12:43 UTC
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 20:19:34 UTC
Upstream bug assigned to jsherril

Comment 4 Bryan Kearney 2016-09-29 20:19:37 UTC
Upstream bug component is Other

Comment 5 Bryan Kearney 2016-09-29 20:19:39 UTC
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 21:26:52 UTC
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 21:27:38 UTC
Created attachment 1217836 [details]
verification video

Comment 16 errata-xmlrpc 2016-11-10 08:14:06 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/RHBA-2016:2699


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