Merge lp:~deryck/launchpad/max-heat-timeout-again-618403 into lp:launchpad
Proposed by
Deryck Hodge
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11494 |
Proposed branch: | lp:~deryck/launchpad/max-heat-timeout-again-618403 |
Merge into: | lp:launchpad |
Diff against target: |
59 lines (+24/-12) 1 file modified
lib/lp/bugs/model/bugtarget.py (+24/-12) |
To merge this branch: | bzr merge lp:~deryck/launchpad/max-heat-timeout-again-618403 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Launchpad code reviewers | Pending | ||
Review via email: mp+34498@code.launchpad.net |
Commit message
Find a compromise query which works for debian and ubuntu heat calculations with tolerable performance.
Description of the change
Round and round we go. Is it spelled MAX(Bug.heat) or ORDER BY
Bug.heat DESC LIMIT 1?
Drum roll......
ORDER BY/LIMIT 1 wins in a taste test challenge (with an occassional
FOO IS NOT NULL thrown in).
lifeless will know what I mean and stands ready to approve.
Cheers,
deryck
To post a comment you must log in.
\o/
may want to factor out the common bits of those queries in future.