Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SAP HANA Scripted Calculation View (Very Slow)

$
0
0

Hi Fahad,

 

As mentioned earlier it takes 10 seconds for 10,000 rows of output. What I think is even when we take top 10,000 the calculations would happen on the entire dataset. So I think it should take not take more than 10 secs for entire dataset as well.

Would like you to try using a reporting tool like Lumira for getting full results.

 

When you tried it using SQLScript how much time it took?

 

Does your SQLScript run along with SQL. In that case it could be even more slow.
I tried building a Graphical View for your requirement. Please see if its better in performance..

 

Ques1.1.JPG

 

Product_1(Projection) - Select Invoice Number and Product Name from Table

Product_2(Projection) -  Select Invoice Number and Product Name from Table

Join_1(Join) - Inner Join based on Invoice Number

Projection_1(Projection) - Filter based on Product_1!=Product_2 and a Calculated Measure with value '1'

Aggregation_1(Aggregation) - Std Aggregation Node with Product_1, Product_2 and Measure as 'Association'

 

Table:

Ques1.2.JPG

Output of Calc View:

Ques1.3.JPG

Getting repeats in my solution , will try to enhance logic to remove those.

 

Please let me know if this solves the performance issue.

 

--

Shreepad


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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