Quantcast
Channel: SCN : Unanswered Discussions - ABAP Testing and Troubleshooting
Viewing all articles
Browse latest Browse all 430

SELECT optimization for performance improvement

$
0
0

Hi guys,

 

I have tried to optimize a program coding for the sake of performance improvement. The original coding was as follow

coding-1.PNG

 

I have united SELECT statements in INNER JOIN as following

coding-2.PNG

 

Unfortunately it didn’t bring any improvements. In opposite, it costs now more time with one SELECT. I am confused. Please advise what I did wrong. Below are screen shots from trace list (trx. ST05) for the coding BEFORE and AFTER.

trace list-1.PNG

trace list-2.PNG

 

For the information: 3 DB tables are involved (CRM system): ADRC, BUT020 and CRMD_ORDER_INDEX.

If I understood the trace list correctly, the system uses primary index for tables ADRC (key field ADDRNUMBER) and BUT020 (key field PARTNER + ADDRNUMBER). For the table CRMD_ORDER_INDEX the secondary index is used (screen shot is below)

 

Index CRMD_ORDER_INDEX-ZDW.PNG

Thanks in advance

Best regards

Andrej


Viewing all articles
Browse latest Browse all 430

Trending Articles