Skip to Content
0

Design Studio: Thoughts on Parallel Processing and BackProcessing Together

May 30, 2017 at 05:27 AM

89

avatar image

Hi Guys,

I need your ideas/input to implement background processing along with Parallel execution in Design Studio.

Below is the test Scenario:

We have two Data Sources
- DS1 (GROUP1) : Execution time 1 min : Summary
- DS2 (GROUP2) : Execution time 3 min : Detail

On the click event of a Button, I want DS1 to Run first and at the same time want DS2 to execute parallel in the background processing

So wrote below script on the Click event of button:

APPLICATION.doBackgroundProcessing();
APPLICATION.loadDataSources(DS1);

and in the background processing I wrote
APPLICATION.loadDataSources(DS2);

After my analysis using profiling I can see that DS1 and DS2 are running in sequential form, so taking 4 min.

Also LOADDATASOURCES will make these two Data sources run in Parallel only when they are defined in same script call or inside the same event.

For eg:
APPLICATION.loadDataSources([DS1, DS2]);
or
APPLICATION.loadDataSources(DS1);
APPLICATION.loadDataSources(DS2);

This way total time it will take is 3 min.

However the above call will not let DS2 run in background.
And since these two will run in parallel my DS1 components will show over the screen after 3 min.

Is there a way I can call both the datasources together in LOADDATASOURCES and have second Datasource to run in background?

So that way my components linked with DS1 (Summary View) will be visible in a Minute and components linked with DS2 (Detail view) will get loaded in background.

I tried hiding the loading status of the components but that too doesn't helped me.

Please share your thoughts.

-Abhi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tammy Powlas
May 30, 2017 at 09:17 AM
0

Hello Abhi - have you read Martin Kolb's blogs on performance best practices with Design Studio? See https://people.sap.com/martinkolb

Example - https://blogs.sap.com/2015/04/15/design-studio-15-the-performance-release/ - you may want to review his blogs and rethink your strategy.

Share
10 |10000 characters needed characters left characters exceeded