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
F17940250: D18682.id44854.diff
Thu, Jul 31, 4:09 AM
F17757107: D18682.id44854.diff
Tue, Jul 22, 3:37 PM
F17738112: D18682.diff
Sun, Jul 20, 10:53 PM
F17668823: D18682.id44852.diff
Sat, Jul 12, 11:28 PM
Unknown Object (File)
May 9 2025, 3:49 AM
Unknown Object (File)
Apr 20 2025, 11:11 PM
Unknown Object (File)
Apr 10 2025, 3:37 PM
Unknown Object (File)
Apr 9 2025, 4:00 PM
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