Merge lp:~wgrant/launchpad/librariangc-lfa-expiry-index into lp:launchpad
Proposed by
William Grant
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 18022 | ||||
Proposed branch: | lp:~wgrant/launchpad/librariangc-lfa-expiry-index | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
26 lines (+11/-0) 2 files modified
database/schema/patch-2209-77-0.sql (+10/-0) lib/lp/services/librarianserver/librariangc.py (+1/-0) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/librariangc-lfa-expiry-index | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+293855@code.launchpad.net |
Commit message
Optimise librariangc LFA expiry with a new index and tweaked query.
Description of the change
Optimise librariangc LFA expiry with a new index and tweaked query.
PostgreSQL would helpfully choose a seqscan to find expiry candidates, probably because the vast majority of expires dates that are set are way in the past. But adding the index and sort makes it nice and snappy.
To post a comment you must log in.