Merge lp:~wgrant/launchpad/i-am-stupid into lp:launchpad
Proposed by
William Grant
on 2012-09-10
| Status: | Merged |
|---|---|
| Approved by: | Stuart Bishop on 2012-09-10 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15927 |
| Proposed branch: | lp:~wgrant/launchpad/i-am-stupid |
| Merge into: | lp:launchpad |
| Diff against target: |
20 lines (+16/-0) 1 file modified
database/schema/patch-2209-23-2.sql (+16/-0) |
| To merge this branch: | bzr merge lp:~wgrant/launchpad/i-am-stupid |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stuart Bishop | db | 2012-09-10 | Approve on 2012-09-10 |
| Robert Collins | db | 2012-09-10 | Pending |
|
Review via email:
|
|||
Commit Message
Add a few missing indices on AccessArtifactGrant and AccessPolicyGrant. Most notably on AccessPolicyGra
Description of the Change
Add a few missing indices on AccessArtifactGrant and AccessPolicyGrant. Most notably on AccessPolicyGra
This fixes the performance of a lot of branch and bug permission checks, as they'll no longer have to do a sequential scan on AccessPolicyGrant to determine a person's granted policies.
To post a comment you must log in.
| Stuart Bishop (stub) wrote : | # |
We decided making the compound indexes UNIQUE is worthwile
| Stuart Bishop (stub) wrote : | # |
Applied to production and qastaging

All looks fine.