Red Hat Bugzilla – Bug 1026953
Bulk consumer fetching seems slow for a small number of systems.
Last modified: 2015-05-14 10:53:36 EDT
Description of problem:
When using the bulk systems fetching:
When using the bulk api Candlepin seems to take around 3.5 seconds on my system no matter if i specify 1, 25, 100, or 180 ids.
Fetching a single system by itself:
only takes 0.8 seconds in my testing. So for about 25 systems, its actually one second faster to fetch them all individually than in bulk.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Bulk fetch ~25 systems
Slower than fetching them all individually
Should be faster than fetching all individually
On my test system I had about ~230 consumers.
Running the above scenarios against candlepin using the rspec infrastructure:
The same label as the above: 0.8.13-1.el6.noarch
All at once 0.437865 sec
One at a time 1.495444 sec
All at once 1.239333 sec
One at a time 3.026335 sec
All at once 2.816281 sec
One at a time 6.005445 sec
Against current master branch:
All at once 0.397801 sec
One at a time 1.561900 sec
All at once 0.731055 sec
One at a time 2.960606 sec
All at once 1.405288 sec
One at a time 6.026481 sec
2 conclusions: This is not happening on the candlepin side.
The recent work has led to better response times for batch sets of data.
Closing out the ol bugs. Please re-open if still an issue.