Actions
Bug #11447
closedFetching product or repo list using sync plans with large number of tasks takes minutes
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1253802
Description of problem:
Customer has 5 products enabled with: 46, 5, 2, 2 & 2 repositories in each one. All 5 products are in the same sync plan. There are also 141916 tasks in the ForemanTask::Task table and 549906 locks in the lock table.
Loading the products page takes about 10 minutes. Loading the repositories page for a product takes ~5 minutes
Version-Release number of selected component (if applicable):
6.1.1
How reproducible:
Always
Steps to Reproduce:
1. Populate a satellite with the above stats
2. Visit the products list and the repo list for a product
Actual results:
takes minutes to load
Expected results:
Loads fairly quickly
Additional info:
Actions