Merge lp:~lifeless/launchpad/bug-717394 into lp:launchpad
Proposed by
Robert Collins
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12427 |
Proposed branch: | lp:~lifeless/launchpad/bug-717394 |
Merge into: | lp:launchpad |
Diff against target: |
127 lines (+34/-19) 4 files modified
lib/lp/bugs/browser/bugtarget.py (+27/-14) lib/lp/bugs/browser/bugtask.py (+3/-4) lib/lp/bugs/interfaces/bugtask.py (+3/-0) lib/lp/bugs/model/bugtask.py (+1/-1) |
To merge this branch: | bzr merge lp:~lifeless/launchpad/bug-717394 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+50541@code.launchpad.net |
Commit message
[r=stub][bug=516050,717394] Use an aggregate function rather than python iteration to summaries milestone bug counts.
Description of the change
Another step on bug search performance, this branch uses the relatively new counting API for bugs to get aggregates for milestones rather than querying once per milestone. This should save nearly a second on bug searches in the Ubuntu context and help make bug searches in smaller contexts just that little bit snappier.
To post a comment you must log in.
I should note that as I was just refactoring I've again not added explicit tests; all the behaviour is tested, with one caveat - I improved the strictness of the aggregate function, and there isn't a test that it was doing the wrong thing before - but it should be pretty obvious to anyone coming along later that it was incorrect before.