Homestyx hydra
Diffusion hydra c767c971ca79

Add "persistence" types (data, cache, or index) to tables, and tweak what…

Description

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

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"):

{F5210886}

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13000

Differential Revision: https://secure.phabricator.com/D18682

Details

Provenance
epriestleyAuthored on Oct 4 2017, 1:51 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:02e1440ef260: Dump tables one at a time, rather than all at once
Branches
Unknown
Tags
Unknown

Event Timeline