Calculating subscribers for bugs with multiple tasks is expensive

Bug #220251 reported by Christian Reis
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Eleanor Berger

Bug Description

If you look at a bug like https://edge.launchpad.net/launchpad/+bug/219346 you'll notice that it has 20+ tasks. The way the code is structured means that get_bugtask_indirect_subscribers() will be called many times, and each of them, issuing redundant or single-item queries.

It should be possible to calculate all the implicit subs for the bug in a few efficient queries by providing an API like get_bug_indirect_subscribers() (in lieu of get_bugtask_indirect_subscribers()).

Changed in malone:
assignee: nobody → intellectronica
importance: Undecided → High
milestone: none → 1.2.4
Revision history for this message
Christian Reis (kiko) wrote :

Incidentally, this affects the queue page when trying to approve a package which fixes the above bug.

Changed in malone:
status: New → In Progress
Revision history for this message
Eleanor Berger (intellectronica) wrote :

RF 6141

Changed in malone:
status: In Progress → Fix Committed
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.