Ref T4368. We don't currently GC these tables, and the sent mail table is one of the largest on secure.phabricator.com. There's no value in retaining this information indefinitely. Instead, retain it for 90 days, which should be plenty of time to debug/diagnose any issues.
Details
Details
- Reviewers
btrahan - Maniphest Tasks
- T4368: Implement GC for mail
- Commits
- Restricted Diffusion Commit
rP88436349b852: Add a GC for sent and received mail
Ran phd debug garbage, saw it clean up a reasonable amount of data from these tables.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- gc1
- Lint
Lint Passed - Unit
No Test Coverage
Event Timeline
Comment Actions
I've hard-coded these TTLs (see inline) since I think it's unlikely many users are customizing these in general. I'll probably move to remove most of the other ones eventually -- there are maybe one or two which are somewhat useful, but for the most part I think I was overthinkinging the need for customization here.
src/applications/metamta/garbagecollector/MetaMTAMailReceivedGarbageCollector.php | ||
---|---|---|
7 | Use of new phutil_units(). |