We will be using high watermark change replication for incremental synchronization between a database and any destination.
Step 1. Create a source database connection.
Step 2. Create a destination connection, which can be anything supported by Integrator.
Step 3. Start creating a flow in the Flows window by clicking the
+ button and typing in
database. Select any flow where the source is a database:
Step 4. Continue by defining flow transformations, mapping and parameters as you would for any other flow when:
- the source is a relational database, and
- the destination is any connection supported by Integrator.
Step 5. Select the Change Replication tab and configure parameters for the change replication.
Since we will be using a high watermark field in the
WHERE clause, it is important to have an index for this field (unless your table is very small).
Step 6. Optionally, define the Source Query.
typically the extract SQL used for change replication is generated automatically. If you have entered a custom SQL in the Source Query field, the Integrator will be able to automatically modify it by adding a condition (in a
WHERE clause) for the high watermark field.