Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Calculation view with Graphical Vs Script?

$
0
0

This is a fun question.

 

There used to be a time when we used Scripted views all the time. They used to be much faster and provided control of the calculation engine, which was much needed in HANA SPS02.

 

These days we always use Graphical views as a preference because HANA's optimizer is so much better. The Graphical modeler will almost always provide better performance. it creates Calculation Scenarios which are generally very well optimized even for quite complex scenarios. Still, there are a few scenarios where the Scripted views will win out:

 

- Flow control. CE Functions can provide more control, when the Graphical modeler gets it wrong. For certain scenarios you can get better control.

- SQL. You can combine SQL with CE functions to great effect. For example some functions like PERCENT and RANK are not available. Also you can use COUNT DISTINCT in a Script but the counter function in the Graphical modeler is not as optimal. Same with non-equi joins.

- PAL and BFL. These can be combined in scripts but not in the graphical modeler.

 

Overall, I consider the Script modeler to be a measure of last resort because it is less flexible, often slower because it can materialize large data volumes and harder to support. Also the Graphical modeler has most of the development effort due to HANA Live and BW on HANA.


Viewing all articles
Browse latest Browse all 8968

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>