Page MenuHomePhabricator

Add "persistence" types (data, cache, or index) to tables, and tweak what "storage dump" dumps
ClosedPublic

Authored by epriestley on Oct 4 2017, 6:58 PM.
Tags
None
Referenced Files
F13092393: D18682.diff
Thu, Apr 25, 3:43 AM
Unknown Object (File)
Fri, Apr 19, 6:52 PM
Unknown Object (File)
Thu, Apr 11, 10:51 AM
Unknown Object (File)
Mon, Apr 1, 3:36 AM
Unknown Object (File)
Sat, Mar 30, 2:03 AM
Unknown Object (File)
Mar 16 2024, 10:55 PM
Unknown Object (File)
Mar 5 2024, 9:55 AM
Unknown Object (File)
Mar 5 2024, 9:50 AM
Subscribers
None

Details

Summary

Ref T13000. This marks each table as either "data" (normal data), "cache" (automatically rebuilt, no need to ever dump) or "index" (can be manually rebuilt).

By default, bin/storage dump dumps data and index tables, but not cache tables.

With --no-indexes, it dumps only data tables. Indexes can be rebuilt after a restore with bin/search index --all ....

Test Plan
  • Ran --no-indexes and normal dumps with --trace, verified that cache and index (former case) or cache only (latter case) tables were dumped with --no-data.
  • Verified dump has the same number of CREATE TABLE statements as before the changes.
  • Reviewed persistence tags in the web UI (note Ferret engine tables are "Index"):

Screen Shot 2017-10-04 at 11.18.30 AM.png (499×890 px, 78 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable