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
The code works fine when file is small (like 100kb), but when the content of the file is bigger than 50MB, then the second line of the code never ends (I waited for result more than 1 hour and I stopped after that time). One core of CPU works with full power all the time, but the execution of the line is endless.
Hi,
In my project files are stored in database (SQL Server). A column, that stores content of the files, is type of varbinary(MAX).
C# class that represents table with files is following
I use following code to fetch data with content of the file:
The code works fine when file is small (like 100kb), but when the content of the file is bigger than 50MB, then the second line of the code never ends (I waited for result more than 1 hour and I stopped after that time). One core of CPU works with full power all the time, but the execution of the line is endless.
When I replace
with
then execution takes less than some seconds.
EF Core version: 5.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
Operating system: Windows 10
IDE: Visual Studio 2019 16.8.2
The text was updated successfully, but these errors were encountered: