ABAP new Open SQL and CDS runtime 传统 CDS 新ABAP SQL

该博客通过对比ABAP程序中使用内连接、CDS视图和增强型OpenSQL的运行时间,探讨了代码下推技术在提升性能方面的效果。实验结果显示,CDS视图和新OpenSQL在新的代码模式下表现优异。尽管具体运行时间可能因系统负载而异,但两者都代表了从上到下的代码优化策略。同时提到了HANA视图作为另一种自下而上的优化途径。
摘要由CSDN通过智能技术生成

  With the introduction of NW AS ABAP 740 SPS5, the New enhanced extended Open SQL was introduced. The new enhanced open sql has some good features such introduction of aggregate functions, right outer join, casting, etc making it a starting step for Code-Push down paradigm.

The Code push down techniques (CDS and New SQL) are compared in the demo here. Below is a demo program of data retrieval from BKPF and BSEG.

1) ABAP program using inner join between BKPF and BSEG

2) ABAP program using CDS view entity

3) ABAP program using enhanced Open SQL features

So its Old SQL vs CDS views vs New Open SQL

The objective of this demo is to determine the run time difference in microseconds.

1) Lets start with the ABAP program using open sql syntax and check the run time.

The Output

2) Next, lets move to program using CDS views. Not going to elaborate on the CDS views as the intention here is to measure the run time.

CDS Views

The ABAP program using the CDS view

The Output

3) Lastly lets move to program using enhanced open sql syntax.

The Output

Here is Run time comparisons in micorseconds.

Since the system resources load differ at times, multiple run times are recorded.

These findings may vary depending on the system load.  Between CDS and New SQL, both stand atop for the new code paradigm.

From the Code-push-down perspective, CDS and New SQL refer to the Top to Bottom approach. However there is Bottom to Top approach which is via HANA views.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值