There are two listTasks calls included in web page. First one runs it with countOnly (for displaying total results) and second one actually retrieves data for display. Second is relatively quick in normal situations, first one is contraintuitively slow.
Aggregate function runs across whole table because of left join on users. This part could be dropped if countOnly is used, as left join is used only for retrieving user name and type, not for limiting query. Dropping this out reduces plan cost 33x for my db in generic case.
PR #783
Commit fa5a77b0 fixes this issue
Commit 7d8b3123 fixes this issue
Metadata Update from @mikem: - Issue set to the milestone: 1.16
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/782
Please continue any further discussion there.