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
Unknown Object (File)
Wed, Dec 11, 5:45 PM
Unknown Object (File)
Wed, Dec 11, 3:12 PM
Unknown Object (File)
Sun, Dec 8, 3:54 AM
Unknown Object (File)
Sat, Dec 7, 3:56 PM
Unknown Object (File)
Tue, Dec 3, 4:04 PM
Unknown Object (File)
Fri, Nov 29, 11:21 AM
Unknown Object (File)
Wed, Nov 27, 7:40 PM
Unknown Object (File)
Sun, Nov 24, 8:18 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