Skip to main content

Erasure

Each record has three types of data:

  • Actual record data (RecordModel) - contains the latest version of all changes.
  • Record changes log (ExistedRecordModel) - contains changes metadata.
  • Record chronicles (RecordChronicleModel) - contains all record changes.

Sometimes these types of data take up too much space and it is needed to delete something. When a record is deleted, it is only marked as deleted, but not erased from the database. To erase records completely, a mechanism was created called Erasure.