Merge lp:~stub/launchpad/bugsummary into lp:launchpad/db-devel
Proposed by
Stuart Bishop
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Stuart Bishop | ||||||||
Approved revision: | 10694 | ||||||||
Merged at revision: | 10832 | ||||||||
Proposed branch: | lp:~stub/launchpad/bugsummary | ||||||||
Merge into: | lp:launchpad/db-devel | ||||||||
Prerequisite: | lp:~stub/launchpad/db-cleanups | ||||||||
Diff against target: |
176 lines (+160/-1) 2 files modified
database/schema/patch-2208-76-4.sql (+159/-0) database/schema/security.cfg (+1/-1) |
||||||||
To merge this branch: | bzr merge lp:~stub/launchpad/bugsummary | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | db | Approve | |
Review via email: mp+69632@code.launchpad.net |
Commit message
[r=stub][bug=810104] Speed up BugSummaryJournal rollup
Description of the change
= Summary =
Rolling up the BugSummaryJournal entries into the BugSummary table is slow.
== Proposed fix ==
Rewrite the logic in constructs that PG optimizes better in this case.
Move removal of 'count 0' rows to once per rollup, rather than once per decrement.
== Pre-implementation notes ==
== Implementation details ==
The old code is in patch-2208-75-0.sql
== Tests ==
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
database/
To post a comment you must log in.