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:
- Data Store: Store Entity
- Data Vault: Record Tracking Satellite, Record Tracking Link Satellite and Record Tracking Business Link Satellite
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
DeletedSetneeds a Delete Detection Source, see No delete detection source with a deleted set (Business Rule).PartialSetneeds at least one partial term and no Delete Detection Source, see PartialSet delete detection settings (Business Rule).- Delete detection on a Store Entity cannot be combined with a multi-version load.
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:
PartialSetis available. - Generator 2.4.1: with SCD2 history,
PartialSetchecks only the current version of a key. Generators 2.2 to 2.4.0 also checked earlier versions.
Related articles
- Reference: Delete Detection Source (Model Object), Delete Detection Partial Terms (Model Object), Delete Detection Partial Operator (Model Object), BG_IsDeleted
- See also: Configure delete detection, Store Entity, Record Tracking Satellite, Generators Release - 2.4.1