Skip to content

Commit 5395e49

Browse files
feat: Parallel Processing of Atomicity Groups in Node.js Apps (#2436)
Co-authored-by: René Jeglinsky <rene.jeglinsky@sap.com>
1 parent eebca40 commit 5395e49

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

guides/protocols/odata.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,3 +1454,18 @@ to customize the annotation as follows:
14541454
If you set `contextAbsoluteUrl` to something truthy that doesn't match `http(s)://*`, the system constructs an absolute path based on the environment of the application on a best effort basis.
14551455
14561456
We encourage you to stay with the default relative format, if possible, as it's proxy safe.
1457+
1458+
### Parallel Processing of Atomicity Groups in Node.js Apps
1459+
1460+
By default, atomicity groups in an OData `$batch` request are processed sequentially.
1461+
In some specific scenarios, such as custom overview pages with multiple data sources, this may result in high roundtrip times.
1462+
1463+
Hence, for `$batch` requests that exclusively contain `GET` requests, you can enable parallel processing of atomicity groups to improve throughput.
1464+
1465+
<Config keyOnly>cds.odata.max_batch_parallelization = 1</Config> specifies the maximum number of atomicity groups processed concurrently.
1466+
The default is `1`, which means sequential processing.
1467+
1468+
::: warning OData Specification Violation
1469+
Parallel processing of atomicity groups is in conflict with the OData specification for `multipart/mixed`, which requires sequential processing.
1470+
For example, the `continue-on-error` preference default can then no longer be adhered to.
1471+
:::

0 commit comments

Comments
 (0)