Replies: 1 comment
-
https://github.com/xuzhg/WebApiSample/tree/main/v8.x/GenericControllerSample for your reference if the controller is generic type. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we upgraded from version 7 to 8, we noticed a degraded performance in our OData controllers.
As the application grew, this became more and more problematic.
On the first call to one of our dynamic Query controllers, the application locked up for about 1-2 minutes.
It turned out that creating an EdmModel, initialized by ODataQueryParameterBinding (ODataQueryOptions) took a very long time in a large application (700+ entities). This was then done for each endpoint, which became a high unexpected cost.
Inspired by the following:
ActionDescriptorExtensions
Our solution around the problem was to force the construction of the entire EdmModel on startup, and add to the respective ActionDescriptor.
Is it wrong thought?
Beta Was this translation helpful? Give feedback.
All reactions