Page MenuHomePhabricator

Add a garbage collector for common ngrams
ClosedPublic

Authored by epriestley on Oct 5 2017, 12:27 AM.
Tags
None
Referenced Files
F15522914: D18687.diff
Sun, Apr 20, 10:22 PM
F15514915: D18687.id44868.diff
Fri, Apr 18, 6:38 AM
F15505894: D18687.diff
Tue, Apr 15, 6:48 AM
F15503475: D18687.id44868.diff
Mon, Apr 14, 10:07 AM
F15502429: D18687.id44864.diff
Mon, Apr 14, 12:38 AM
F15492686: D18687.id44862.diff
Sat, Apr 12, 5:10 PM
F15481264: D18687.id.diff
Tue, Apr 8, 7:31 PM
F15478347: D18687.diff
Apr 7 2025, 10:11 PM
Subscribers
None

Details

Summary

Ref T13000. After an ngram is marked as "common", we can delete it from the storage table.

Currently, the only way to get ngrams marked as "common" is to manually run bin/search ngrams, so this has no impact on normal installs.

Test Plan

Ran bin/garbage collect, saw it start chewing through my local Maniphest ngrams table and removing common ngrams.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Also add a little warning text to bin/search ngrams.
This revision is now accepted and ready to land.Oct 5 2017, 6:01 PM
This revision was automatically updated to reflect the committed changes.