Merge lp:~rvb/launchpad/activereviews-bug-867941 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Raphaël Badin | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 14330 | ||||
Proposed branch: | lp:~rvb/launchpad/activereviews-bug-867941 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
124 lines (+79/-1) 2 files modified
lib/lp/code/browser/tests/test_branchmergeproposallisting.py (+60/-0) lib/lp/code/model/branchcollection.py (+19/-1) |
||||
To merge this branch: | bzr merge lp:~rvb/launchpad/activereviews-bug-867941 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+82375@code.launchpad.net |
Commit message
[incr] [r=allenap][bug=867941] Eager load stuff to improve the performance of a person's activereviews page.
Description of the change
This branch addresses one of the problems of code.lp.
= Tests =
./bin/test -vvc test_branchmerg
= Q/A =
This page issues a lot of queries:
qastaging: [678+, 807+, 1068+, 939+, 1056+, 1140+]
prod: [1405, 849+, 777+, 1034+, 639+, 1382+]
(a '+' next to the number means that the whole page timed out and thus the number of queries is not accurate)
Something weird is going on here; if I change:
recorder1 = self.createBMPs AndMeasureActiv eReviewsPageRen dering( 3) AndMeasureActiv eReviewsPageRen dering( 7)
recorder2 = self.createBMPs
to:
recorder1 = self.createBMPs AndMeasureActiv eReviewsPageRen dering( 3) AndMeasureActiv eReviewsPageRen dering( 70)
recorder2 = self.createBMPs
Then the number of queries does not match. The extra queries are the one needed to get branch. {_associatedPro ductSeries, _associatedSuit eSourcePackages } which is exactly what _preloadDataFor Branches populates.
This needs investigation…