Merge lp:~wgrant/launchpad/bug-241129-queue-binary-scaling into lp:launchpad
Proposed by
William Grant
on 2010-08-03
| Status: | Merged |
|---|---|
| Approved by: | Māris Fogels on 2010-08-03 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11296 |
| Proposed branch: | lp:~wgrant/launchpad/bug-241129-queue-binary-scaling |
| Merge into: | lp:launchpad |
| Diff against target: |
82 lines (+16/-3) 2 files modified
lib/lp/soyuz/scripts/queue.py (+7/-2) lib/lp/soyuz/scripts/tests/test_queue.py (+9/-1) |
| To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-241129-queue-binary-scaling |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Māris Fogels (community) | code | 2010-08-03 | Approve on 2010-08-03 |
|
Review via email:
|
|||
Commit Message
'queue' no longer overrides each specified binary n^2 times.
Description of the Change
The 'queue' archive admin commandline tool lets users specify multiple binary names to override in a single invocation.
However, the current implementation fetches the PackageUpload matching each binary, and overrides them all without removing duplicates. This is inefficient when overriding multiple binaries from the same build: each binary is overridden n² times (bug #241129)!
This branch fixes the scaling problem by only considering each PackageUpload once. It also adds tests to confirm the number of overridden packages does not increase.
To post a comment you must log in.

Hi William,
This change looks good. r=mars
Maris