-
Notifications
You must be signed in to change notification settings - Fork 285
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
EnsureCreatedAsync() performance downgrade after upgrading Microsoft.Data.SqlClient from version 5.1.1 to 5.1.4(5.1.1-->5.1.4) #2542
Comments
Fixed in 5.2.1 and 5.1.6 |
Please try again after the 5.2.1 Hotfix is published and please let us know if you are still having an issue. |
I did not find Microsoft.Data.SqlClient version 5.2.1 and 5.1.6 please check published version. https://www.nuget.org/packages/Microsoft.Data.SqlClient/5.2.0?_src=template#versions-body-tab Could you please explain why this is happening? mainly await context.Database.EnsureCreatedAsync().ConfigureAwait(false); this line taking time. |
That feature you requested to be investigated is in EntityFramework package. Could you open an issue with EntityFramework instead, please? |
But it's due to Microsoft.Data.SqlClient version only you can check upgrading Microsoft.Data.SqlClient version from 5.1.1 to 5.1.4. you can observe time difference |
We will investigate and get back to you when we have an update. When the Hotfix 5.2.1 is released later this week, could you try that and let us know if you are still having an issue. |
Could you provide a runnable repro in a zip file, please? |
@arellegue provided in MS Teams. |
I have investigated this issue and found the root cause to be in the introduction of transient fault handling which added the delay. |
@akhiltyagi98 htofix v5.2.1 is released. Can you test with that version? |
@arellegue @JRahnama JRahnama Thanks Team issue has been fixed in new release 5.2.1. Please mark this as close. |
Fixed in hotfix release 5.2.1. |
Describe the bug
I am using Microsoft.EntityFrameworkCore localDB SQLServer to run test cases, I use below commands in each test cases
await context.Database.EnsureDeletedAsync().ConfigureAwait(false);
await context.Database.EnsureCreatedAsync().ConfigureAwait(false);
But after upgrading Microsoft.Data.SqlClient package version from 5.1.1 to 5.1.4(5.1.1-->5.1.4), EnsureCreatedAsync() performance downgraded, can you please help me understand this ?
To reproduce
Please use this code to check
Microsoft.Data.SQLClient: 5.2.0(Latest) test case execution time:
Microsoft.Data.SQLClient version 5.1.1 or later package test case execution time:
The text was updated successfully, but these errors were encountered: