Merge lp:~gary/launchpad/bug787294 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Gary Poster |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13572 |
Proposed branch: | lp:~gary/launchpad/bug787294 |
Merge into: | lp:launchpad |
Diff against target: |
142 lines (+55/-53) 1 file modified
lib/lp/bugs/model/bugtask.py (+55/-53) |
To merge this branch: | bzr merge lp:~gary/launchpad/bug787294 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | Approve | ||
Review via email: mp+69887@code.launchpad.net |
Commit message
Translate the raw SQL optimization work Robert did for bug 787294 into code.
Description of the change
This branch translates the raw SQL optimization work Robert did for bug 787294 into code.
This was attempted once before, but the translation was not close enough. This time, I think we are close enough. I can share the SQL we are generating now if desired. The proof is in the pudding: the SQL from the previous attempt consistently takes > 35 seconds on staging; using the SQL generated in this branch, I've gotten < 1 second on staging after the cache is warm. (Of course, with a cold cache, staging takes some gargantuan amount of time.)
lint is happy. ec2 test is happy.
Thanks
Gary
Congratulations on fixing this! The code looks good formally and since it passes tests I approve landing this. I do not pretend to understand the particulars of this query or its optimization so if you want a review on that, feel free to request another one. ;-)