Skip to main content


Showing posts from July, 2018

My Response to "Avoid Lazy Loading in ASP.NET"

Shawn Wildermuth wrote a post Avoid Lazy Loading in ASP.NET  where he argues that web applications should not make use of the lazy loading features in ORMs. His argument for not using lazy loading is because of potential problems, including increased web page latency, and extra load on the database server. He would rather avoid these pitfalls by avoiding using lazy loading. For reference, here's the documentation on lazy loading in EF Core.  I agree with his position that lazy loading can lead to performance issues, but I disagree with the assertion that lazy loading should be avoided. My main issue is the advice to not use the lazy loading feature out right in web applications. I am not a fan of black listing a technology because of the potential issues. Instead, I'd rather see an explanation of the potential pitfalls, under what conditions, and how those problems would manifest themselves in web applications. I wrote up my comments on his post, but my comments got