Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

How to select data from analytic views efficiently

$
0
0

Dear Experts,

 

I face a challenge to select data from analytic view efficiently. I have one analytic view which as 2 tables VBRK/VBRP(data foundation) and one attribute view linked for the variant configuration IBINVALUES IBIN IBSYMBOL.

 

If I write the select and in the WHERE statement I use field from VBRK/VBRP as filter I got the result in 1 second 1200 lines with the characteristic (VC) included.

 

Now my problem is that if I want to further restrict the result set and add a filter on the VC additionally to the WHERE statement, I got 212 lines in 9 seconds, I would expect that HANA would be faster. It seems that the entire attribute view for the variant configuration gets materialized before it is linked to the VBRK/VBRP tables.

 

Do you know any way how to fix this or build better the views?

I would like to have first the VBRK/VBRP select done and only for those result the attribute view should be executed using the additional filter on it.

 

SELECT "VBELN","VKORG", "Year","MILL", round(sum("FKLMG")) AS "FKLMG"

FROM "_SYS_BIC"."test_proc.procedure.mp.views/InvoiceData"

WHERE "Year" = '2013' and VKBUR = 'HUNG'

 

1200 lines in 1 second. Year and VKBUR is coming from VBRK/VBRP data foundation.

 

SELECT "VBELN","VKORG", "Year","MILL", round(sum("FKLMG")) AS "FKLMG"

FROM "_SYS_BIC"."test_proc.procedure.mp.views/InvoiceData"

WHERE "Year" = '2013' and VKBUR = 'HUNG' and MILL = 'HU'

 

212 lines in 9 seconds. The MILL field is coming from the attribute view.

 

 

thanks for your advice

Tamas


Viewing all articles
Browse latest Browse all 4343

Trending Articles



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