Merge lp:~cjwatson/launchpad/optimise-spec-search into lp:launchpad
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 18569 |
Proposed branch: | lp:~cjwatson/launchpad/optimise-spec-search |
Merge into: | lp:launchpad |
Diff against target: |
44 lines (+16/-2) 1 file modified
lib/lp/blueprints/model/specificationsearch.py (+16/-2) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/optimise-spec-search |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+338425@code.launchpad.net |
Commit message
Move base clauses for specification searches into a CTE to avoid slow sequential scans.
Description of the change
This should fix timeouts on e.g. Person:+specs; EXPLAIN (ANALYZE, BUFFERS) of the relevant slow query on dogfood goes from about 27s to under 300ms with this change.
To post a comment you must log in.