A simple performance comparison between CDS redirect and normal read

Created by Wang, Jerry, last modified on Jan 05, 2017

A very rough performance comparison is performed in ER9/001.

Comparison scenario

The two below operations are compared:

table ZCOMM_PRODUCT2

This is a very simple table which has only three fields. All of the fields are mapped from MARA.

table ZCOMM_PRODUCT which is redirected to CDS view ZP_MARA_REDIRECT

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:


And use ST05 to trace the duration of these two kinds of SELECT SQL.

Test result

The case for direct read via SELECT SQL: 0.159 second
The case for CDS redirect: 0.247 second

要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章