When multi generational datastore is disabled:
For each files in /usr/tideway/var/tideway.db/data/datadir (for example: p0002_nHost_hist), the compaction:
- creates a (compacted) copy of the file in /usr/tideway/var/tideway.db/data/datadir/n00000
- removes the file from datadir
When there are no files left in datadir to compact, the (compacted) files are copied from n00000 back to datadir
When multi generational datastore is enabled, tw_ds_compact --online executes the steps below
- the existing generations are compacted/merged into a new directory named "n00000<number>"
- the files in "n00000<number>" are moved to another folder named "c00000<number>"
- the previous read-only generation named "g00000<number>" are deleted
- a new current generation named "g00000<number>" is created
*Para ver una versión en español de este articulo, consulte: KA 000357478