Bugs page times out when getting subscription_class for a person

Bug #487015 reported by Graham Binns
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Graham Binns

Bug Description

What happens:
Bug 393476 has been fixed but the bugs page still times out if there are many subscribers from duplicates.

What should happen:
The page shouldn't time out.

The problem is due to the code in and related to BugViewMixing.subscription_class, since this actually checks `if person in duplicate_subscribers`, which means iterating over all the subscribers from dupes.

We should add a pair of methods to IBug, userIsDirectSubscriber() and userIsSubscribedFromDuplicate() which do straight SQL lookups. This should save us from hitting the timeout, since most of the time is spent outside the database iterating over the subscribers list.

Related branches

Graham Binns (gmb)
Changed in malone:
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in malone:
status: In Progress → Fix Committed
Graham Binns (gmb)
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.