on 2022 Apr 13 3:48 AM
Hi experts,
SQL Script using in HANA Calculation View :
[1].
BEGIN
TAB_A = select * from A;
select * from B inner join :TAB_A ;
END
[2].
BEGIN
select * from B inner join (select * from A) ;
END
Questions :
1. Which will cost less time ? Or the same time ?
2. In case [1], will "select * from A" run twice ? One time for TAB_A, another time for "inner join :TAB_A" ?
Tks.
Request clarification before answering.
the SQLScript compiler will, by default, try to combine statements in one. See https://help.sap.com/docs/SAP_HANA_PLATFORM/de2486ee947e43e684d39702027f8a94/23531168b23340c08731b96...
So, you should get the same performance for both.
Regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
40 | |
15 | |
10 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.