Merge lp://staging/~julian-edwards/launchpad/count-cull into lp://staging/launchpad
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12203 |
Proposed branch: | lp://staging/~julian-edwards/launchpad/count-cull |
Merge into: | lp://staging/launchpad |
Diff against target: |
379 lines (+60/-66) 13 files modified
lib/lp/soyuz/adapters/archivedependencies.py (+3/-5) lib/lp/soyuz/browser/archive.py (+8/-14) lib/lp/soyuz/browser/build.py (+1/-1) lib/lp/soyuz/model/archive.py (+1/-1) lib/lp/soyuz/model/archivepermission.py (+16/-13) lib/lp/soyuz/model/binarypackagebuild.py (+2/-2) lib/lp/soyuz/model/distroseriessourcepackagerelease.py (+3/-2) lib/lp/soyuz/model/publishing.py (+4/-4) lib/lp/soyuz/model/queue.py (+9/-8) lib/lp/soyuz/scripts/initialise_distroseries.py (+9/-9) lib/lp/soyuz/scripts/packagecopier.py (+2/-2) lib/lp/soyuz/scripts/ppa_add_missing_builds.py (+1/-1) lib/lp/soyuz/scripts/publishdistro.py (+1/-4) |
To merge this branch: | bzr merge lp://staging/~julian-edwards/launchpad/count-cull |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+46158@code.staging.launchpad.net |
Commit message
Cull a load of unnecessary .count()s in favour of less-expensive SQL.
Description of the change
= Summary =
Cull a load of unnecessary .count()s in favour of less-expensive SQL.
== Proposed fix ==
See bug 701947
== Implementation details ==
See bug 701947
I had trouble converting one of them as you can see from the comment, I filed
bug 702425 about it.
== Demo and Q/A ==
n/a
To post a comment you must log in.
To confirm I grok this: rather than forcing a complete evaluation, we do a LIMIT 1 query? Sounds reasonable to me.