We are updating our project from .net framework 4.7 to .net core 6, but are experiencing some performance issues. Everything was working fine in .net framework 4.7, but now requests are taking a very long time and some even get a timeout exception. Calling the metadata goes very fast (19 ms). Does someone knows what the problem could be? Should we disable something, like LazyLoading, on our DbContext?
This payload is now taking 4,5 seconds than our .net framework version (315 ms)
{"where":{"Deleted":false,"or":[{"OrderStatus":"Processing","OrderNumber":{"contains":"189670"}},{"OrderStatus":"OnHold","Reference":{"contains":"189670"}},{"Customer.Name":{"contains":"189670"}}]},"orderBy":["Id desc"],"expand":["Customer"],"take":10,"inlineCount":true}: