copyBinariesTo query count scales by number of binaries
Bug #728836 reported by
William Grant
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
William Grant |
Bug Description
copyBinariesTo issues one or two BPPH queries for each publication: the first checks if the publication already exists, and the second creates it if it doesn't. This can be done in two batched queries.
Related branches
lp:~wgrant/launchpad/bug-728836
- Robert Collins (community): Approve
-
Diff: 574 lines (+286/-77)9 files modifiedlib/lp/registry/interfaces/distroseries.py (+1/-1)
lib/lp/registry/model/distroseries.py (+2/-2)
lib/lp/soyuz/interfaces/binarypackagerelease.py (+1/-0)
lib/lp/soyuz/interfaces/publishing.py (+21/-4)
lib/lp/soyuz/model/archive.py (+6/-1)
lib/lp/soyuz/model/publishing.py (+139/-61)
lib/lp/soyuz/model/queue.py (+3/-6)
lib/lp/soyuz/tests/test_publishing.py (+111/-0)
lib/lp/testing/factory.py (+2/-2)
tags: | added: oops timeout |
Changed in launchpad: | |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r12537 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 12537>.