Merge lp:~lifeless/launchpad/bug-421901 into lp:launchpad/db-devel
Proposed by
Robert Collins
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Stuart Bishop | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10403 | ||||
Proposed branch: | lp:~lifeless/launchpad/bug-421901 | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
86 lines (+60/-0) 3 files modified
database/schema/comments.sql (+1/-0) database/schema/patch-2208-60-0.sql (+15/-0) database/schema/trusted.sql (+44/-0) |
||||
To merge this branch: | bzr merge lp:~lifeless/launchpad/bug-421901 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | db | Approve | |
Review via email: mp+56729@code.launchpad.net |
Commit message
[r=stub][bug=421901] Schema preparing for improving who-commented-
Description of the change
The commented bugs query is slow because we scan across 4 tables, even a bitmap join will only drop that to effectively three, so we end up reading all the messages from $foo, then filtering at the bugmessage step, and then onto bug. Making a copy of owner available on bugmessage and indexing appropriately (see the bug for a variety of tried indices) gives a 10x speed up on our pathological cases.
To post a comment you must log in.
Fine