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
I don't know if this is a known issue, but I just encountered a performance fix with such as massive impact that I felt I had to report it.
I was using EF normally to fetch a single row from a single table. The table has a field where I store json data, and hence for some extreme situations, that field can get quite large (in one case up to 10mb). Most of the time they're much smaller, less than 500kb, so I didn't hit this before.
My original code took about 45 seconds (!) to return that single (admittedly large) record. When I rewrote it using ADO.NET and Sequential Access that same query returned in ~200ms, or a 180x performance improvement!
Question
I don't know if this is a known issue, but I just encountered a performance fix with such as massive impact that I felt I had to report it.
I was using EF normally to fetch a single row from a single table. The table has a field where I store json data, and hence for some extreme situations, that field can get quite large (in one case up to 10mb). Most of the time they're much smaller, less than 500kb, so I didn't hit this before.
My original code took about 45 seconds (!) to return that single (admittedly large) record. When I rewrote it using ADO.NET and Sequential Access that same query returned in ~200ms, or a 180x performance improvement!
Original code:
New code:
Your code
Stack traces
Verbose output
EF Core version
8
Database provider
Microsoft.EntityFrameworkCore.SqlServer
Target framework
.NET 8
Operating system
Windows 11 and SQL Azure
IDE
No response
The text was updated successfully, but these errors were encountered: