This feature is only available with Enterprise subscriptions, within the Data Migration functionality.
It was designed for use in migrations that run in Data Append mode, which is the only option available when the destination database is the Runtime Connection. With this connection, DMM doesn’t have IDENTITY INSERT permissions, so primary key values will change between source and destination. In that case, if you perform multiple migrations with the same entity, records will be duplicated—unlike migrations without Data Append, where primary keys match across environments and records are simply updated if needed.
With this feature, DMM not only ensures that duplicate records aren’t copied, but also updates existing records if needed, or even deletes records that were removed from the source.
The Delta Migration option is available in the Data Migration feature, on the Final Configuration screen.
How Delta Migration works
When you run a migration using this feature, DMM keeps track of the records it migrates for each entity. Later, if you run another migration with this feature enabled, DMM will:
Insert records that didn’t exist in the previous migration;
Update records that have changed in the source;
Delete records that are no longer found in the source.
DMM uses the primary key—or, if you’re using the User Mapped Table feature, the selected attributes—as the key to determine whether a record has already been migrated. It still needs to process all records from the source each time, so even if the source data hasn't changed, the second migration won’t be faster than the first one. This feature ensures the environments stay synchronized.
The migration configurations don’t need to be identical between runs. DMM handles this per entity. For example, you might run a migration where some entities have already been migrated with Delta Migration enabled, while others are being migrated for the first time. In this case, for the already migrated entities, DMM will only insert new records that weren’t migrated previously. For new entities, DMM will insert all records and save their primary key information for future migrations.
If you are using this feature with entities that have a where clause applied, DMM will only synchronize the records within the minimum and maximum ID values of the chunk. For example:
If you use a clause based on the primary key, such as id > 1000 and id < 2000, DMM will synchronize only the records inside that ID range.
If you use a clause based on another field, such as name >= 'b' and name < 'c', DMM will still synchronize only between the minimum and maximum IDs within that chunk. Any IDs within that range that do not match the filter in the source environment but were previously migrated will be deleted during synchronization. To change this behavior, enable the Only delete records removed from the source option. Before deleting a record from the destination, DMM then checks whether it still exists in the source, ignoring the WHERE clause. Records that still exist in the source but no longer match the filter are kept, and only records really deleted from the source are removed. This adds some extra queries to the source during synchronization, so deletions may be slightly slower. The option is disabled by default.
To use this feature as intended, all migrations should be performed with the Delta Migration feature enabled.
The history of each execution can be seen and deleted in Management > Delta & BPT Migration History
Deleting data in the destination
DMM compares the source records with the history of the previous migrations, not with the data in the destination. So it does not know about changes made directly in the destination. If records are deleted in the destination, for example manually, but their history is kept, DMM still considers them migrated. On the next migration they are ignored, or updated in a destination record that no longer exists, so they are not inserted again.
If the destination table is fully emptied, DMM inserts all the records again. The problem only happens when some records are deleted and others stay in the table.
To migrate those records again, delete the history of that migration in Management > Delta & BPT Migration before running it again.
Duplicate records instead of updates
The opposite also happens. If the history is deleted in Management > Delta & BPT Migration but the data in the destination is kept, DMM no longer knows which records were already migrated. On the next migration, all the source records are treated as new and inserted again, creating duplicates of the records that already exist in the destination.
The same happens if a migration without Delta Migration is run between two delta runs, because the records inserted by it are not added to the history.
To avoid this, always delete the history and the data in the destination together, or keep both.
When an entity is migrated using Delta Migration and User Mapped Table, DMM stores its migration history based on the values of the selected attributes rather than the record ID.
If you later migrate another entity that references it using a separate configuration, DMM can only translate that reference correctly if the referenced entity is also included in the configuration, with User Mapped Table enabled and configured to use the same attributes.
Otherwise, DMM looks up the migration history using the record ID, finds no matching entry, and writes NULL to the reference. This can lead to errors, for example, when the reference is part of a unique index.
How to avoid this without migrating the referenced entity again
Add the referenced entity to the configuration and enable User Mapped Table, using the same attributes configured in its previous migration.
Set its WHERE clause to 1=0.
With this WHERE clause, no records from the referenced entity are inserted, updated, or deleted. However, DMM still uses the selected attributes to correctly translate the references.