Scenario:
how to do the incremental loading using mapping variable
Solution:
Step 1: create a mapping variable,
$$MappingDateVariable. In the source qualifier, create a filter to read
only rows whose transaction date equals $$MappingDateVariable, such as:
transaction_date = $$MappingDateVariable
(I am assuming you have a column in your source table called, transaction date or any date column to help do incremental load).
Step 2: Create a mapping variable, $$MappingDateVariable and hard code the value from which date you need to extract.
Step 3: In the mapping, use the variable function to set the variable value to increment one day each time the session runs.
lets
say you set the initial value of $$MappingDateVariable as 11/16/2010.
The first time the integration service runs the session, it reads only
rows dated 11/16/2010. And would set $$MappingDateVariable to
11/17/2010. It saves 11/17/2010 to the repository at the end of the
session. The next time it runs the session, it reads only rows from
11/17/2010.
Comments
Post a Comment