A very rough performance comparison is performed in ER9/001.
Comparison scenario
The two below operations are compared:
(1) table ZCOMM_PRODUCT2
This is a very simple table which has only three fields. All of the fields are mapped from MARA.
![](https://img.haomeiwen.com/i2085791/b51eb3725d5797ad.png)
(2) table ZCOMM_PRODUCT which is redirected to CDS view ZP_MARA_REDIRECT
![](https://img.haomeiwen.com/i2085791/054f7b7a55eeee8a.png)
Both table have exactly the same number of entries: 97.144
I create two simple ABAP methods to retrieve data from ZCOMM_PRODUCT and ZCOMM_PRODUCT2:
![](https://img.haomeiwen.com/i2085791/4e7e57563de8c5a0.png)
![](https://img.haomeiwen.com/i2085791/1a25683f1ab9bdd7.png)
And use ST05 to trace the duration of these two kinds of SELECT SQL.
The case for direct read via SELECT SQL: 0.159 second
The case for CDS redirect: 0.247 second
![](https://img.haomeiwen.com/i2085791/9ead0898573ae338.png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
![](https://img.haomeiwen.com/i2085791/fc7ecd97deb67090.png)
网友评论