Incrementally (or delta) loading data after an initial full data load

Samueldavidwinter
2 min readApr 29, 2022

Different ways of loading data incrementally with Azure Data Factory.

Delta data loading from database by using a watermark

  1. Define a watermark in your source database. A watermark is a column that has the last updated time stamp or an incrementing key.
  2. The delta loading solution loads the changed data between an old watermark and a new watermark.

The workflow for this approach is depicted in the following diagram:

For step-by-step instructions, see the following tutorials:

For templates, see the following:

Delta data loading from SQL DB by using the Change Tracking technology

Change Tracking: A lightweight solution in SQL Server and Azure SQL Database, providing an efficient change tracking mechanism for applications.

It enables an application to easily identify data that was inserted, updated, or deleted.

The workflow for this approach is depicted in the following diagram:

For step-by-step instructions, see the following tutorial:

Loading new and changed files only by using LastModifiedDate

One can copy new and changed files only by using LastModifiedDate to the destination store.

  1. ADF will scan all the files from the source store,
  2. Apply the file filter by their LastModifiedDate,
  3. Only copy the new and updated file since last time to the destination store.

Please be aware that if you let ADF scan huge amounts of files but you only copy a few files to the destination, this will still take a long time because of the file scanning process.

For step-by-step instructions, see the following tutorial:

For templates, see the following:

Loading new files only by using time partitioned folder or file name.

You can copy new files only, where files or folders has already been time partitioned with timeslice information as part of the file or folder name (for example, /yyyy/mm/dd/file.csv). It is the most performant approach for incrementally loading new files.

For step-by-step instructions, see the following tutorial:

--

--

Samueldavidwinter

Passionate data engineer who loves helping others & =playing a small part in humanities capability to improve lives & understand the glorious universe. Much <3