-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF Core5.0 Slow queries #24194
Comments
See #23900. For this scenario, don't use Async methods. |
OK, it's greater than 1MB |
OK, it's greater than 1MB
…------------------ 原始邮件 ------------------
发件人: "anranruye"<[email protected]>;
发送时间: 2021年2月19日(星期五) 中午1:45
收件人: "dotnet/efcore"<[email protected]>;
抄送: " "<[email protected]>; "Author"<[email protected]>;
主题: Re: [dotnet/efcore] EF Core5.0 Slow queries (#24194)
See #23900. For this scenario, don't use Async methods.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Duplicate of dotnet/SqlClient#593 |
This is unfortunately a SqlClient issue that is out of EF 's control... You can indeed use the sync API as a workaround until that's fixed. |
All right. Got the question |
Include your code
In the asynchronous method ToListAsync, when the field VCHAR is too long, the query is slow. When the asynchronization is eliminated and the ToList method is used, the query field is base64 of image transcoding, but I use the log to check, the database query part only takes 2ms. The actual mapping asynchronization is about 20S, and the non-asynchronization requires about 2S
Code
Log
EF Core version:
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 5.0)
Operating system:
IDE: (e.g. Visual Studio 2019 16.3)
The text was updated successfully, but these errors were encountered: