Skip to content
  • There are no suggestions because the search field is empty.

Delete Detection Method (Model Object)

Applies to
Platform: Microsoft SQL Server · Snowflake · Snowflake dbt · Databricks · Databricks dbt · Fabric Lakehouse · Fabric Warehouse · Oracle
Architecture: Data Store · Data Vault

Delete Detection Method (DeleteDetectionMethod) decides how a load finds business keys that the source no longer delivers or reports as deleted. Set it on a Store Entity to mark such keys as deleted, or on a Record Tracking satellite to record the loads in which a key was missing.

Where to set it

Set the property in the group Delete Detection when you edit a model object of one of these types:

Values and default

On a Store Entity the default is None, and the property offers these values:

  • None: no delete detection.
  • FullSet: every load delivers all valid rows, and a stored key that is missing from the load is marked as deleted. With a Delete Detection Source, that model object lists the keys to keep instead.
  • PartialSet: every load delivers all valid rows of a part of the data, for example of some countries. Only stored keys whose Delete Detection Partial Terms values appear in the load are checked.
  • DeletedSet: the model object in Delete Detection Source lists the keys deleted in the source.

On the Record Tracking types the default is FullSet, and only None and FullSet are offered. With FullSet, a key of the latest load that the source does not deliver gets a row with BG_Appearance 0, see Record Tracking Satellite.

Prerequisites and interactions

Effect on generated output

On a Store Entity, any value other than None adds a delete-detection loader, table and view. A deleted key gets a row with BG_IsDeleted 1. No row is physically removed. The objects and an example are in Configure delete detection.

Migration implications

On a Store Entity that already holds data, the first load with a method marks every key it finds at once.

Release differences

  • Generator 2.2: PartialSet is available.
  • Generator 2.4.1: with SCD2 history, PartialSet checks only the current version of a key. Generators 2.2 to 2.4.0 also checked earlier versions.

Related articles