Merge lp:~wgrant/launchpad/upcoming-optimisation into lp:launchpad
Proposed by
William Grant
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 18400 | ||||
Proposed branch: | lp:~wgrant/launchpad/upcoming-optimisation | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
62 lines (+33/-7) 1 file modified
lib/lp/registry/model/person.py (+33/-7) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/upcoming-optimisation | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+325141@code.launchpad.net |
Commit message
Optimise Person.
Description of the change
Optimise Person.
PostgreSQL was unable to effectively estimate the number of assigned
workitems when the conditions were combined. Moving that calculation
into a CTE acts as an optimisation barrier and forces PostgreSQL to
calculate the assigned set up front, making the rest much faster.
To post a comment you must log in.