openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

v4.OData: $metadata loaded very late

Open born2dev opened this issue 6 years ago • 1 comments

OpenUI5 version: 1.81.2 Bootstrap: data-sap-ui-async="true" manifest.json:

       "": {
          "dataSource": "mainService",
          "preload": true,

When I start the application, the OData service metadata document is loaded very late, I can derive that from the network tab. I would expect it to be loaded shortly after the manifest. Additionally, the service metadata document is only loaded when the application has at least one binding to the model, for example <Table id="table" items="{/<collection>}". I would expect it to be loaded as soon as it is mentioned in the manifest.

born2dev avatar Sep 27 '20 13:09 born2dev

Hello!

Thanks for your interest in OData V4. Early requests for metadata and security token explains how to send these requests earlier. Please check it out.

Best regards, Thomas

ThomasChadzelek avatar Sep 28 '20 08:09 ThomasChadzelek