前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM Fiori My Opportunity应用的性能分析

SAP CRM Fiori My Opportunity应用的性能分析

作者头像
Jerry Wang
发布2019-05-31 11:14:37
5130
发布2019-05-31 11:14:37
举报

1: #8 in excel

[https://fiorilaunchpad-faasperf.dispatcher.neo.ondemand.com/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities?]{.underline}$skip=0&$top=20&$inlinecount=allpages

This roundtrip is used to render the navigation list when the Opportunity tile is clicked by launchpad. It is mandatory, could not be eliminated.

2: #11: [https://fiorilaunchpad-faasperf.dispatcher.neo.ondemand.com/sap/opu/odata/sap/CRM_OPPORTUNITY/]{.underline}

Once the top 20 opportunities are retrieved from backend, by default the FIRST item in the navigation list will be selected automatically, and its detail data will be displayed in the detail view ( technical name: S3.view.xml ). Thus the detailed data of this selected opportunity will be fetched via OData batch request (roundtrip marked with green in below picture - this is however the #13 roundtrip mentioned in the excel).

Before this batch request is really sent to backend, OData framework will issue a token request refresh operation first:

Detail operation of this roundtrip:

And new CSRF token is returned and contained in HTTP response header:

Summary: this roundtrip is issued by OData handling framework and thus could not be controlled by application:

3: #13 roundtrip - just the batch request mentioned in step2:

–batch_c9c9-beb3-1a6d

Content-Type: application/http

Content-Transfer-Encoding: binary

GET SalesStages HTTP/1.1

Accept-Language: en

Accept: application/json

MaxDataServiceVersion: 2.0

DataServiceVersion: 2.0

–batch_c9c9-beb3-1a6d

Content-Type: application/http

Content-Transfer-Encoding: binary

GET Priorities HTTP/1.1

Accept-Language: en

Accept: application/json

MaxDataServiceVersion: 2.0

DataServiceVersion: 2.0

–batch_c9c9-beb3-1a6d

Content-Type: application/http

Content-Transfer-Encoding: binary

GET UserStatuses HTTP/1.1

Accept-Language: en

Accept: application/json

MaxDataServiceVersion: 2.0

DataServiceVersion: 2.0

–batch_c9c9-beb3-1a6d

Content-Type: application/http

Content-Transfer-Encoding: binary

GET Currencies HTTP/1.1

Accept-Language: en

Accept: application/json

MaxDataServiceVersion: 2.0

DataServiceVersion: 2.0

–batch_c9c9-beb3-1a6d

Content-Type: application/http

Content-Transfer-Encoding: binary

GET Opportunities(guid’FA163EEF-573D-1ED4-BEC1-5BEA665821F3’)?$expand=ChangeDocs,Competitors,Products,OpportunityLogSet HTTP/1.1

Accept-Language: en

Accept: application/json

MaxDataServiceVersion: 2.0

DataServiceVersion: 2.0

–batch_c9c9-beb3-1a6d

Content-Type: application/http

Content-Transfer-Encoding: binary

GET RetrieveMaxHitSet HTTP/1.1

Accept-Language: en

Accept: application/json

MaxDataServiceVersion: 2.0

DataServiceVersion: 2.0

–batch_c9c9-beb3-1a6d–

Instance based.

4: #12 roundtrip [https://fiorilaunchpad-faasperf.dispatcher.neo.ondemand.com/sap/opu/odata/sap/CRM_OPPORTUNITY/Opportunities(guid]{.underline}

This roundtrip is used to get ETAG:

ETAG returned in http response header:

Instance based.

5: #14 roundtrip: [https://fiorilaunchpad-]{.underline}

faasperf.dispatcher.neo.ondemand.com/sap/opu/odata/sap/CRM_OPPORTUNITY/AccountCollection(‘3272’)?$expand=Logo

This roundtrip is responsible to retrieve the logo header information of a given account. Logo is maintained in CRM backend system via attachment.

6. #15 roundtrip: [https://fiorilaunchpad-faasperf.dispatcher.neo.ondemand.com/sap/opu/odata/sap/CRM_OPPORTUNITY/AttachmentCollection(documentID=]{.underline}/$value

The document id and document class are retrieved by the previous roundtrip, #14. Then the binary data of logo image is retrieved in this step.

The data retrieve for logo image binary data is expensive. Just checked in SAP internal system, for a small image with 16.8k, still more than 800ms is spent in backend handling.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年02月05日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档