Page MenuHomePhabricator

Add a garbage collector for common ngrams
ClosedPublic

Authored by epriestley on Oct 5 2017, 12:27 AM.
Tags
None
Referenced Files
F13182258: D18687.id44864.diff
Thu, May 9, 10:03 PM
F13180797: D18687.id44862.diff
Thu, May 9, 4:09 AM
Unknown Object (File)
Tue, May 7, 6:10 AM
Unknown Object (File)
Fri, May 3, 3:48 AM
Unknown Object (File)
Mon, Apr 29, 3:52 PM
Unknown Object (File)
Sun, Apr 28, 7:13 AM
Unknown Object (File)
Fri, Apr 26, 8:58 PM
Unknown Object (File)
Wed, Apr 24, 11:47 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.