Data Loading using EPMAutomate for a range of periods is always treated in sequential manner. This in part due to how Data Management processes data between the staging and mapping tables under the covers, just look at the process log. The Data Exchange framework offers some efficiencies and ways to speed up data loading. Using EPMAutomate still processes 1 period at a time even Quick Mode.
In recent project when loading Forecast for 1 year it took 20 min using Quick Mode.
And we needed to load 3 years, and the forecast needed to be reloaded several times a day during the forecast cycle, so waiting nearly an hour was not an option.
As I pointed out in my blog post EPM Groovy RestAPI vs Groovy EPMAutomate for Data Loading REST APIs calling EPMAutomate uses POST and requires a GET to retrieve status.
This presents an opportunity to think out of the box and after consultation with Joe Aultman the Evangelist of Groovy we decided that instead of sending a range in one EPMAutomate we would loop through the 12 periods and send POST to runIntegration for a period. And looking at the process details we saw 12 active integrations.
First (1) we need to create a List of the POST calls then iterate (2) through the list to GET the status of the runIntegration and once all 12 integrations finished the code proceeded to next step.
Using this approach we were able to cut the data load time down from 20 minutes per forecast year to less than 6 minutes per forecast year.
No comments:
Post a Comment