Steven Giesel 7/7/2025

ToListAsync is fast again in Entity Framework (kind of)

Read Original

This article discusses a recent performance improvement for the ToListAsync method in Entity Framework Core, which previously caused slow queries and high memory allocations when retrieving large NVARCHAR(MAX) strings. It explains the underlying issue in Microsoft.Data.SqlClient, details the fix via pull requests, and provides benchmark results showing significant speed gains, though a small allocation gap remains.

ToListAsync is fast again in Entity Framework (kind of)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week