Merge lp:~sinzui/launchpad/ds-getcurrentreleases into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Curtis Hovey on 2010-11-12 |
| Approved revision: | no longer in the source branch. |
| Merge reported by: | Curtis Hovey |
| Merged at revision: | not available |
| Proposed branch: | lp:~sinzui/launchpad/ds-getcurrentreleases |
| Merge into: | lp:launchpad |
| Diff against target: |
42 lines (+13/-12) 1 file modified
lib/lp/registry/model/distroseries.py (+13/-12) |
| To merge this branch: | bzr merge lp:~sinzui/launchpad/ds-getcurrentreleases |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Henning Eggers (community) | release-critical | Approve on 2010-11-12 | |
| Edwin Grubbs (community) | code | 2010-11-12 | Approve on 2010-11-12 |
|
Review via email:
|
|||
Description of the Change
This is my branch to make distroseries.
lp:~sinzui/launchpad/devel
Diff size: 43
Launchpad bug:
https:/
Test command: ./bin/test -vv \
-t TestDistroSerie
-t distributionsou
-t packaging-views -t test_packaging -t test_sourcepack
-t "registry/
Pre-
Target release: 10.11
Make distroseries.
-------
The update the PG 8.4 caused several pages like +packages and +source to
become slower. The root cause is that distroseries.
is working with more SPRs in the query than we intend. For example, when
getting the current release of bzr in natty, 1000+ releases are in the working
set of data.
Rules
-----
* Conver the subquery in the WHERE clause to be a query table that
has exactly 1 for each SPN being looked up.
* Stormify the query.
QA
--
* Visit https:/
* Verify the page loads.
* Visit https:/
* Verify the page loads.
* Visit https:/
* Verify the page loads.
* Visit https:/
* Verify the page loads.
Lint
----
Linting changed files:
lib/lp/
Test
----
No tests changed, but I certainly ran a lot to verify the output did not
change. The query was tested against the staging db
http://
http://
| Henning Eggers (henninge) wrote : | # |
Thanks for figuring this out.

Looks good.