The findPathToTeam calculations were a problem b/c in the cases causing the 
timeout, the query gets called hundreds of times, leading to the largest set of 
time in the process. Because of the iteration through an unknown series of team 
relations, there's no easy way to predict how this will work.

As an example, in https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1688ED2377 
you can see the query used in findPathToTeam being called 261 times, for a 
total time of 4610. The other +participation OOPS reports show the same thing.
-- 
https://code.launchpad.net/~jcsackett/launchpad/plus-participation-additional-fixes/+merge/32820
Your team Launchpad code reviewers is requested to review the proposed merge of 
lp:~jcsackett/launchpad/plus-participation-additional-fixes into 
lp:launchpad/devel.

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help   : https://help.launchpad.net/ListHelp

Reply via email to