You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to save some time on the first request of our app. Because our OData model is quite big, building the model takes several seconds on the first request.
Apparently the OP wanted something similar to what you need, which is basically to cache the EDM and load it quickly on startup. In his case, he saved it to XML and deserialized during startup, but there are some limitations with that approach as described in the issue.
Might still be useful for you to take a look.
Having a "first-class" way to pre-generate the EDM would be very beneficial though. Perhaps a source-generated EDM would be ideal.
The slowness of the EDM model build-up at startup has also been reported here before:
I'm trying to save some time on the first request of our app. Because our OData model is quite big, building the model takes several seconds on the first request.
Is it possible to pre-compile the model at design time and use this at runtime, much like how you can precompile an entity framework model?
The text was updated successfully, but these errors were encountered: