The workload reports page shows list of agents, their assigned issue counts and number of breached and ongoing issues.
To find the breached and ongoing issues we completely calculate everything to do with SLAs leading to slow performance.
The configuration in the attached screenshot took 23 seconds to load.
- Try to load a Workload report
Report loads in a reasonable time
Report take a very long time to load like ~30secs
For all issues that have an assignee, we loop through all SLAs, and get goalSummaryData.
In getting goal data, we retrieve everything about ongoing goals, including expected breach date that gets active ranges in nested loops. This is already O(n^4). It's possible that there is a worse flow.