Merge lp:~wallyworld/launchpad/latestpublishedreleases-1071581 into lp:launchpad
Status: | Superseded | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~wallyworld/launchpad/latestpublishedreleases-1071581 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
60 lines (+56/-0) 1 file modified
database/schema/patch-2209-38-0.sql (+56/-0) |
||||
To merge this branch: | bzr merge lp:~wallyworld/launchpad/latestpublishedreleases-1071581 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | db | Approve | |
William Grant | Pending | ||
Review via email: mp+132466@code.launchpad.net |
This proposal has been superseded by a proposal from 2012-11-05.
Commit message
Add new table for reporting on publications, and a table to allow garbo jobs to persist state between runs.
Description of the change
This db patch adds 2 new tables.
1. LatestPublished
Stores information about the latest published source packages. Effectively denormalised SPPH and SPR data. Required for efficient reporting.
I added indices which are required immediately for the task at hand.
I also added a reference to SPR, even though it's not used right now; it likely will be in the future.
Since it's for reporting only, I left off the FK references. This allows the referenced objects to be deleted and the reporting data can stay behind.
2. GarboJobState
A more robust alternative to using memcache to allow garbo jobs to store their state between runs.
Discussed on IRC. Putting the FK constraints in is a good idea unless we can demonstrate performance is a problem.