Actions
Bug #9580
closedLoading Activation keys list slow
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1196742
Description of problem:
The Activion keys list is slow. It contains also a lot of not relevant data for the Katello users. E.g. the fields productAttributes and providedProducts are 33% of the data returned:
- time curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/katello/api/v2/organizations/4/activation_keys > act.json
real 0m17.244s
user 0m0.125s
sys 0m0.041s
- ls
l act.json1 root root 484619 Feb 26 16:06 act.json
-rw-r--r- - hoi-json act.json --get ALL | wc -l
14412 - hoi-json act.json --get ALL | egrep -v '(productAttributes|providedProducts)' | wc -l
5786
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. Create 50 Activation keys
2. List activation keys
3.
Actual results:
Slow and big response in 20+ seconds
Expected results:
Result in 3 seconds and small response body with relevant data
Additional info:
Similiar to the BZ1177609 and BZ1161636
Actions