EFcore TimesOut when executing long time taking queries
See original GitHub issueDescribe what is not working as expected. Ef core when executing stored procedure, that takes more than few millions of records.
times out abruptly. i use EF core as async. the result might be from search of 3 record from a million to few 100. If you are seeing an exception, include the full exceptions details (message and stack trace). execption : ef core timeout.
Exception message:
Stack trace:
Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
- stored procedure which joins tables with more than few millions of records.
- select 5 records from the entire joined tables.
- return the result set .
- EF core is async
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Console.WriteLine("Hello World!");
Further technical details
EF Core version: (found in project.csproj or packages.config) Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer) Operating system: IDE: (e.g. Visual Studio 2015) visual studio 2015 update 3
Issue Analytics
- State:
- Created 6 years ago
- Comments:36 (13 by maintainers)
I had a similiar issue but resolved it as follows:
See if that at least solves the timeout problem for yourself
@kishoretvk we are not denying ef core throws an exception when the timeout occurs. what we are trying to understand is where the problem lies.
the issue will probably be in one or more of the areas below:
with all this we currently think the problem is not in ef but in the sql server stack somewhere and trying to help you find the problem so a solution can be provided. regardless of what the cause of the problem truly is.