[HANA] For All Entries의 사용
어디선가 HANA에서 for all entries 를 사용하지 말라는 이야기를 본적이 있다.
자 결과는.. 개인적으로는 New Syntax가 가장 빠를줄 알았다.
1. For all entries
2. New Syntax Only
3. New Syntax Mix
잘못본건가봄..
For all entries가 젤 빠르네..
New Syntax 실망이네..
그래서 Join만 걸어보았다.
역시 Join이 가장 빠르긴 하네..
제가 뭔가 잘못된 방식으로 테스트 한거면 댓글 달아주세요.
### 추가글.
FDA(fast Data Access) 라는게 있다네요.
빼고 테스트해보니..
엄청 차이나네.
근데 굳이 끌필요는... 없지 않을까.. -_-
그에 반해 New Syntax는 FDA를 꺼도 속도는 그대로.
아래 링크는 참조
https://blogs.sap.com/2019/03/31/compare-performance-between-select-for-all-entries-and-amdp/
Compare performance between SELECT FOR ALL ENTRIES and AMDP | SAP Blogs
5 25 22,424 Even with S4/HANA, we still need to use the SELECT FOR ALL ENTRIES statement to join data in ABAP and data in the database as many legacy calculation logics are still in ABAP. This document is to compare the performance of SELECT FOR ALL ENTRIE
blogs.sap.com
Why Fast Data Access (FDA) for ABAP “FOR ALL ENTRIES” Statements on IBM Db2 Is Useful | SAP Blogs
Why Fast Data Access (FDA) for ABAP “FOR ALL ENTRIES” Statements on IBM Db2 Is Useful | SAP Blogs
1 10 12,052 The FOR ALL ENTRIES clause is OPEN SQL statements is a frequently used feature in ABAP. OPEN SQL statements with FOR ALL ENTRIES clause represent one of the OPEN SQL statement types that contain both database tables and ABAP internal tables. To
blogs.sap.com