Incremental Load

New Contributor

Incremental Load

how to do incremental load for transactional data?

Message 1 of 5
4 REPLIES 4
Community Boss

Re: Incremental Load

Hi @PujithaB 

 

There are many ways to do this, but it would be good to understand the type of data you are trying to load:

How can you uniquely identify the rows of transactional data? is there a code? unique reference? 

What is the expected volume of data how many rows?

How regularly do you need to load it?

Do you need to load different versions? 

Is it going to be loaded via a flat file CSV or an API integration? 

 

Here is a basic example: 

https://help.anaplan.com/anapedia/Content/Import_and_Export/Import_Data_into_Models/Import_Data_into...

 

Once you have answered some questions I'll be able to help you more.

 

Thanks,

 

Usman

Message 2 of 5
New Contributor

Re: Incremental Load

rows can be reffered uniquly

and volume is millions of data

and two different versions needto be loaded

it is from an API integration

 

Message 3 of 5
Community Boss

Re: Incremental Load

Ok thats great @PujithaB 

 

I would create a list against which the unique identifier is used.

First I would import these items into this list.

Next I would create a module dimensioned by this list to bring in the data with all the relevant line items.(this can be dimensioned by the version also).

Before adding this to the API you need to create import first and then you can link it to the API. 

The link below highlights some best practice to follow also:

https://help.anaplan.com/anapedia/Content/Import_and_Export/Get_Started_with_Imports/Tips_for_Import...

 

I hope this helps!

 

Message 4 of 5
Highlighted
Community Boss

Re: Incremental Load

@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

Message 5 of 5