Merge lp:~sinzui/launchpad/packaging-timeout-bug-523886 into lp:launchpad
Proposed by
Curtis Hovey
on 2010-02-18
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~sinzui/launchpad/packaging-timeout-bug-523886 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
103 lines (+17/-17) 2 files modified
lib/lp/registry/browser/distroseries.py (+14/-14) lib/lp/registry/browser/tests/packaging-views.txt (+3/-3) |
||||
| To merge this branch: | bzr merge lp:~sinzui/launchpad/packaging-timeout-bug-523886 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Guilherme Salgado (community) | code | 2010-02-18 | Approve on 2010-02-19 |
|
Review via email:
|
|||
To post a comment you must log in.
| Curtis Hovey (sinzui) wrote : | # |
| Paul Hummer (rockstar) wrote : | # |
Looks good. Thanks for the branch!

This is my branch to make +packaging and +needs-packaging faster.
lp:~sinzui/launchpad/packaging-timeout-bug-523886 /bugs.launchpad .net/bugs/ 523886 implementation: bac
Diff size: 104
Launchpad bug: https:/
Test command: ./bin/test -vv -t packaging-views
Pre-
Target release: 10.02
make +packaging and +needs-packaging faster ------- ------- ------- ------- ------- ------- ------- ------- -----
-------
OOPS-1510EB595 and OOPS-1510ED677 show too much data was called. Though the
core objects are cached, there is a lot of repetition in the queries because
the UI is checking the presence of secondary objects.
The first fix it to reduce the batch size because these pages have too much
information to comprehend. If necessary, try to cache the bug and translation
information.
Rules
-----
* Reduce the batch size of both view to 20, which is more than enough
work for one person to see.
* Consider caching the bug supervisor, bug tracker, branch and templates
ADDENDUM
* I looked at the queries and in the case of +needs-packaging there
were no extra db lookups in template, but there were a tremendous
number of person/team lookups. I created an empty view with an
empty template so got a large number of person/team lookups
to render the header a footer. I will report this as a separate bug.
* I changed the base view for the two affected views because they
do not use the base features anymore.
* Cleaned up some issues reported by lint.
QA
--
* Visit https:/ /launchpad. net/ubuntu/ lucid/+ needs-packaging /launchpad. net/ubuntu/ lucid/+ packaging
* Verify 20 packages are listed and that the page does not timeout
* Visit https:/
* Verify 20 packages are listed and that the page does not timeout
Lint
----
Linting changed files: registry/ browser/ distroseries. py registry/ browser/ tests/packaging -views. txt
lib/lp/
lib/lp/
Test
----
* lib/lp/ registry/ browser/ tests/packaging -views. txt
* Updated the test to verify that the default batch size is 20.
Implementation
--------------
* lib/lp/ registry/ browser/ distroseries. py
* Changed the batch size to 20.