1. 程式人生 > >SAP CRM Fiori My Task後臺實現的效能優化前後資料比較

SAP CRM Fiori My Task後臺實現的效能優化前後資料比較

Monday, February 1, 2016 4:52 PM

Before optimization

data retrieval for all five sub nodes ( (1) complex note (2) application log (3) user status (4) document history (5) attachment ) are done by Indian colleagues within the loop, which has quite poor performance – as complained by Marcin, it totally costs 71 seconds to finish task initial load.
After optimization


I have rewritten data retrieval for all five sub nodes and the optimized version only took around 17 seconds now in GM6 using user FF2_BUPA_AHN.

在這裡插入圖片描述
在這裡插入圖片描述
在這裡插入圖片描述
Before optimization, method GET_EXPANDED_ENTITYSET_ORIGIN has totally 253 lines of code,

在這裡插入圖片描述
Now only 70 lines of code, much easier to understand and maintain.
在這裡插入圖片描述


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