on 2020 Dec 28 7:22 PM
Hello ,
Recent training on HANA Query optimizations has helped many of us to understand how HINTs work. I was able to identify a performance bottleneck, its logical reason through planviz and HINT that can improve the performance. I have observed below.
1. If I perform SELECT on graphical calculation view with all selections and HINT - JOIN_THRU_AGGR in SQL console, memory consumption and runtime is reduced by 20% (78 GB brought down to 53 GB)
SELECT <FIELDNAME> FROM <CALC VIEW> WHERE MANDT = '100' AND STORE = 'ABCD' WITH HINT 'JOIN_THRU_AGGR'
2. If I put the same HINT - JOIN_THRU_AGGR in Calculation view "View Properties" tab at semantic layer, memory consumption of view shoots up to 78 GB again.
SELECT <FIELDNAME> FROM <CALC VIEW> WHERE MANDT = '100' AND STORE = 'ABCD'
We are on HANA 2.0 SP04.
Did anybody faced similar issue ?
-Mandar.
Hi Mandar,
it would be helpful to let us know which key / value pair exactly you have used to define the hint. Please describe in more detail (some screenshots maybe?) how you have set the hint?
Generally, I hope you already found SAP Note
2509161 - Set SQL Execution Hints in Calculation View via HANA Studio Modeler
which outlines the prerequisites and more details on what to consider when applying hints on view level in the HANA Studio Modeler.
Regards,
Bojan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bojan,
First of all, sorry for delay in response !
We tried using query_level_sql_hints (lower case) and unfortunately results / performance is same. We did not see any improvement by changing HINT that way.
We think only way out is remodeling our object to get better performance.
-Mandar.
Hello Mandar,
I might have missed something here but afaik whether the hint shows an effect or not was not the initial question. You reproted that the hint is not considered when defined in the view properties. Do yo now see that the hint is applied? (regardless of the performance improved or not)
Regards, Bojan
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.