Merge lp:~abentley/launchpad/optimize-spec-query into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2012-11-09 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 16258 | ||||
| Proposed branch: | lp:~abentley/launchpad/optimize-spec-query | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
172 lines (+72/-16) 2 files modified
lib/lp/blueprints/model/specification.py (+51/-4) lib/lp/blueprints/model/sprint.py (+21/-12) |
||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/optimize-spec-query | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-11-09 | Approve on 2012-11-09 |
|
Review via email:
|
|||
Commit Message
Optimise specification-
Description of the Change
= Summary =
Fix bug #1075365: Timeout when trying to visit previous sprint pages
== Proposed fix ==
Optimize specification sprint queries.
== Pre-implementation notes ==
Actual query profiling done with deryck.
== LOC Rationale ==
Part of Private Projects
== Implementation details ==
Flatten all the privacy filter code using LEFT JOINs, so that the query planner has more freedom to choose the correct plan.
This code introduces visible_
Because visible_
DISTINCT is required because a user may have multiple AccessPolicyGra
== Tests ==
bin/test test_sprint
== Demo and Q/A ==
https:/
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
| Aaron Bentley (abentley) wrote : | # |
As discussed on IRC, the "obsolete" code currently has other call sites. I do plan to remove it, but that will involve more changes.

This approach looks reasonable to me Aaron. Please remember to follow up to remove the obsoleted code after QA.