Bug #26030
closedAvailable Errata report performs poorly for some filters
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1656470
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.
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to John Mitsch
- Pull request https://github.com/Katello/katello/pull/7973 added
Updated by John Mitsch almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|3ec1138d3d837d9111c6d462959b48bc398eef0d.
Updated by Christine Fouant almost 6 years ago
- Target version set to Katello 3.12.0
- Triaged changed from No to Yes