You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a modal from the database where a column has a long string (I tested with a 9MB string) it takes around 130x more if you use an async operation.
Steps to reproduce
publicclassFile{publicintId{get;set;}publicstringBase64{get;set;}}publicIActionResultIndex(){varfile=_dbContext.Files.Find(1);// The property Base64 has a 9MB random Base64 stringreturnOk(file.Base64);// Takes 0.2s}publicasyncTask<IActionResult>Index(){varfile=await_dbContext.Files.FindAsync(1);returnOk(file.Base64);// Takes 25.9s}
Further technical details
EF Core version: v5.0.0-preview.8.20407.4
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: NET 5.0
Operating system: macOS Catalina and Windows 10 (happens in both)
IDE: Visual Studio 2019 16.7 and Rider 2020.01 (tested in both)
The text was updated successfully, but these errors were encountered:
When a modal from the database where a column has a long string (I tested with a 9MB string) it takes around 130x more if you use an async operation.
Steps to reproduce
Further technical details
EF Core version: v5.0.0-preview.8.20407.4
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: NET 5.0
Operating system: macOS Catalina and Windows 10 (happens in both)
IDE: Visual Studio 2019 16.7 and Rider 2020.01 (tested in both)
The text was updated successfully, but these errors were encountered: