Merge lp:~lifeless/launchpad/bug-711071 into lp:launchpad
Proposed by
Robert Collins
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Collins | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 12630 | ||||
Proposed branch: | lp:~lifeless/launchpad/bug-711071 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
460 lines (+137/-79) 6 files modified
lib/lp/bugs/browser/bugtask.py (+69/-12) lib/lp/bugs/browser/tests/special/bugs-fixed-elsewhere.txt (+19/-21) lib/lp/bugs/browser/tests/test_bugtarget_patches_view.py (+9/-38) lib/lp/bugs/configure.zcml (+5/-0) lib/lp/bugs/interfaces/bugtask.py (+23/-1) lib/lp/bugs/model/bugtask.py (+12/-7) |
||||
To merge this branch: | bzr merge lp:~lifeless/launchpad/bug-711071 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+53956@code.launchpad.net |
Commit message
[r=adeuring][bug=711071] Use aggregation rather than repeated expensive queries in bug context stats portlets.
Description of the change
The bugtarget stats portlet was querying each statistic separately; this walks over the same bugs many times and is thus terribly slow. Doing the most expensive examine-all-bugs case and deriving the other information from it is much faster - so this patch does that for the most expensive properties. See the linked bug for analysis of which things are grouped and why.
To post a comment you must log in.