Merge lp:~sinzui/launchpad/portlet-package-summary-timeout into lp:launchpad
Proposed by
Curtis Hovey
on 2010-02-25
| Status: | Merged |
|---|---|
| Merged at revision: | not available |
| Proposed branch: | lp:~sinzui/launchpad/portlet-package-summary-timeout |
| Merge into: | lp:launchpad |
| Diff against target: |
153 lines (+31/-22) 4 files modified
lib/lp/registry/doc/distroseries.txt (+1/-1) lib/lp/registry/model/distroseries.py (+13/-3) lib/lp/registry/stories/distroseries/xx-show-distroseries-packaging.txt (+11/-7) lib/lp/registry/tests/test_distroseries.py (+6/-11) |
| To merge this branch: | bzr merge lp:~sinzui/launchpad/portlet-package-summary-timeout |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Paul Hummer (community) | code | 2010-02-25 | Approve on 2010-02-25 |
|
Review via email:
|
|||
To post a comment you must log in.
| Curtis Hovey (sinzui) wrote : | # |
| Paul Hummer (rockstar) wrote : | # |
<rockstar> sinzui, what specifically is the portlet you're talking about?
<rockstar> sinzui, ?
<sinzui> https:/
<rockstar> sinzui, ah, okay, thanks.
<rockstar> sinzui, did you cherry pick to staging or were you running raw queries?
<sinzui> rockstar: I ran raw queries comparing the oops query to the modified one
<rockstar> sinzui, okay.
<rockstar> sinzui, this looks good. r=rockstar
review:
Approve
(code)

This is my branch to make getMostRecently LinkedPackaging s faster.
lp:~sinzui/launchpad/portlet-package-summary-timeout /bugs.launchpad .net/bugs/ 526583 implementation: Edwin, jtv
Diff size: 154
Launchpad bug: https:/
Test command: ./bin/test -vv -t reg.*distroseries
Pre-
Target release: 10.02
Make getMostRecently LinkedPackaging s faster ------- ------- ------- ------- ------- -
-------
1 in 3 page loads of the /ubuntu/lucid timesout. LinkedPackaging s() is expensive call. It needs to be faster, or
getMostRecently
we need to consider a cache. We cannot release this portlet if this problem
persists.
Rules
-----
* Add a filter on bug.heat that will ignore the cold bugs. A filter of
> 200 reduces the hottest bugs to about from 700 to 200 and is 4 times
faster on staging. The most viewed pages are unchanged by this filter.
The query or implementation can be revisited in 10.03 when we get more
user feedback.
* bug.hottness was renamed to bug.heat; update the tests to use the same
term.
* bug.heat can now be set by admins using setHeat(); remove the SQL
hacks to set bug heat.
* Uncomment the distroseries packaging portlet story to verify it
is how users will discover the needs upstream linking page.
QA
--
* Visit http:// staging. launchpad. net/ubuntu/ lucid
* Verify the page does not timeout.
Lint
----
Linting changed files: registry/ doc/distroserie s.txt registry/ model/distroser ies.py registry/ stories/ distroseries/ xx-show- distroseries- packaging. txt registry/ tests/test_ distroseries. py
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Test
----
* lib/lp/ registry/ doc/distroserie s.txt registry/ stories/ distroseries/ xx-show- distroseries- packaging. txt registry/ tests/test_ distroseries. py
* Updated the bug count because the cold bugs are not counted.
* lib/lp/
* Added heat to one bug to verify the formatting of a singular bug
is correct.
* Updated the story to show that users will get to +needs-packaging
via the portlet.
* lib/lp/
* Updated the message count and heat to look like numbers that are
actually in the database.
* Removed the sql hack to set bug heat.
* Renamed hottness to heat.
Implementation
--------------
* lib/lp/ registry/ model/distroser ies.py
* Added a filter on bug.heat to ignore the colder bugs.
* Extracted the filter and weight to variables so that it is easier
to update the SQL.