SAP Knowledge Base Article - Public

2852462 - How to Optimize the Performance of Batch Payload

Symptom

You have a requirement to Post data using batch payload, but it takes 15-20 seconds to process the payload.

Environment

SAP Cloud for Customer

Cause

The maximum time taken to process a payload is the response generated by the successful creation of records.

Resolution

You can stop the response getting created by using the below parameters in the batch payload

- odata-no-codedescs: true
- odata-no-response-payload: true

Example Payload-

--batch

Content-Type: multipart/mixed; boundary=changeset_dee3639e-74f3-497a-ad26-deba8391b7f2
--changeset_dee3639e-74f3-497a-ad26-deba8391b7f2

Content-Type: application/http
Content-Transfer-Encoding: binary

POST IndividualCustomerCollection HTTP/1.1
Content-Length: 2768
Accept: application/atom+xml
odata-no-codedescs: true
odata-no-response-payload: true
Content-Type: application/atom+xml

Keywords

batch, payload, OData, POST, PATCH, GET , KBA , batch , payload , odata , patch , post , custom headers , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions