Bug #26030

Available Errata report performs poorly for some filters

Added by John Mitsch over 1 year ago. Updated over 1 year ago.

Errata Management
Target version:
Bugzilla link:
Fixed in Releases:
Found in Releases:


Cloned from

Description of problem:
I've tested performance of the report with the following results:

*a) 10000 hosts with these channels synced (but no applicable errata): rhel-7-server-extras-rpms, rhel-7-server-optional-rpms, rhel-7-server-rpms, rhel-7-server-satellite-capsule-6.4-rpms, rhel-7-server-satellite-tools-6.4-rpms - 80 s
*b) The same as a) but with filter to 0 hosts: 1 s
*c) The same as a) but added 63 hosts with 10 000 applicable errata: 140 s
*d) The same as c) but filtered to only 7 hosts: 16 s
*e) The same as c) but errata filtered to 0 (search in form 'nonexistentname'): 16 m
*f) The same as c) but errata filtered to 0 (search in form 'id="nonexistentname"'): 90 s
*g) The same as c) but errata filtered to 1: 110 s
*h) The same as a but with filters from a) and g): 11 s

Notice the 16 minutes long time in e) compared to 90 seconds in f) while those two cases only differ in filter form. This might be reasoned as expected behavior (form in e compares different data and it may be that much more resource consuming) but I think this is worth reporting and checking.

Tested on a RHEL7 machine with Intel Xeon, 4 sockets, 32 cores, hyperthreading, 2.7 Ghz, 128 GB RAM.

How reproducible:
Deterministic but depends on configuration

Steps to Reproduce:
1. Monitor -> Report Templates
2. In the Available Errata report's row, click Generate
3. Fill in the search in form 'id="nonexistentname"'
4. Submit
5. Do the same as in 1..4 but with search 'nonexistentname'

Actual results:
The second report generation takes much longer

Expected results:
Not sure. Perhaps a lesser difference.

Associated revisions

Revision 3ec1138d (diff)
Added by John Mitsch over 1 year ago

Fixes #26030 - Add only_explicit search to errata packages

This speeds up errata search by specifying the package searches
to only happen on explicit search (package=foo rather than foo)


#1 Updated by John Mitsch over 1 year ago

  • Description updated (diff)

#2 Updated by The Foreman Bot over 1 year ago

  • Assignee set to John Mitsch
  • Status changed from New to Ready For Testing
  • Pull request added

#3 Updated by John Mitsch over 1 year ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Christine Fouant over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0

Also available in: Atom PDF