Incremental Load

how to do incremental load for transactional data?

Tagged:

Best Answer

  • rob_marshall
    Answer ✓

    @PujithaB ,

     

    There are actually two parts for delta loads, one from the source system and one from the Data Hub to the spoke model.  First, on the source system, you will need to utilize a system column like last modified date or something similar that most ERP/EDW's have.   Additionally, have the source system create an additional column (New or Delta), with either a True/False or better yet a 1/0 (1 = True, 0=False).

     

    On the list, create a property called New or Delta, format it as a boolean.  This actually goes against DISCO because you are creating a property, but since it will not be used anywhere else and will be cleared later, this will be ok as you are doing one import (to the list vs. importing to the list as well as a SYS Properties module).  When the import is done, you will only have a segmented number of list members with a True, this will be your delta members.

     

    When you set up the views to import into your spoke model, utilize this property to only filter the data that is True. 

     

    Now, you will need to setup a Process, in the Data Hub, to clear the New or Delta flag, and then load the data.  To setup the clear, create a module "SYS Clear Delta" with two line items: "New" and "Clear Import Flag", both with a format of Boolean.  The formula for the New line item will point to the list property.  The Clear Import Flag can either be blank or hardcoded to False.  Create a view with a filter on the New equal to True, but hide it in from the view (so only the Clear Import Flag is shown.  Create an Action to import the "Clear Import Flag" to New or Delta list member property.  When you set up your process to import the data into the Data Hub, the first action will be this "clear" action, then the 2nd action will be to insert the new data to the list, and then the 3rd action will be to import the transactional data to Transactional module. 

     

    Hope this helps,

     

    Rob

Answers