Add an option to trigger a CDS snapshot after import

Description

A daexim import really means overwriting the contents of the datastore, which is a large operation, which ends up being stored in journal.

Doing multiple consecutive imports can cause the journal to grow, consuming both on-disk (leveldb file) space and in-memory (heap) space.

Add an option whereby after a successful import the CDS leader is instructed to take a snapshot, hence purging the now-stale journal entries – controlling consumption of both resources.

Activity

Show:

Anton Ivanov October 8, 2019 at 2:51 PM

Full import in most databases is done with integrity and transaction support off during import and some (optional) checks at the end when the indexes are being rebuilt.

IMHO taking the snapshot after import is treating the symptom instead of fixing the underlying issue that import is pumping all the data through the normal transaction engine and there is no way to turn on/off appropriate import knobs in it.

Details

Assignee

Reporter

Components

Priority

Created September 12, 2019 at 5:52 PM
Updated December 8, 2023 at 5:04 PM