Page MenuHomePhabricator

Add a GC for sent and received mail
ClosedPublic

Authored by epriestley on Feb 1 2014, 11:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 2:48 AM
Unknown Object (File)
Wed, Oct 23, 10:30 PM
Unknown Object (File)
Oct 23 2024, 1:15 AM
Unknown Object (File)
Oct 23 2024, 12:37 AM
Unknown Object (File)
Oct 13 2024, 12:06 AM
Unknown Object (File)
Sep 20 2024, 2:53 AM
Unknown Object (File)
Sep 20 2024, 2:36 AM
Unknown Object (File)
Sep 19 2024, 8:05 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
T4368: Implement GC for mail
Commits
Restricted Diffusion Commit
rP88436349b852: Add a GC for sent and received mail
Summary

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.

Test Plan

Ran phd debug garbage, saw it clean up a reasonable amount of data from these tables.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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
8

Use of new phutil_units().