on ‎2017 Feb 22 11:24 AM
Hi,
I am making two calls of sap.ui.model.odata.read method one after the other with different entitiy sets.
Since UI5 has inbuilt capability to send both GET operations in a single batch request, i can see only one $batch request in console.
When i checked this $batch call under 'Network' tab in chrome console, i saw there are two GET commands one after the other under 'Request Payload' and this whole $batch request is taking 3 seconds.
Whereas each of these read calls spearately takes 1.5 seconds.
-->So, i think when i make two read calls one after the other, browser is actually calling them sequentially.
What i want to achieve is to make two $batch requests for odata.read calls, which are written one after the other.
Is it possible with some settings or any sample code ?
BR,
Venky.
Request clarification before answering.
Hello Venky,
Try using ODataModel.setUseBatch(false);
If you want to have 2 different requests then try disabling the request as above and see whether it serves your purpose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.