When I initially started using NHibernate I had no clue about it’s common pitfalls and how to avoid them. I learned the hard way that if you don’t optimize your NHibernate queries and mappings, you are going to have performance issues.
One of the most common pitfalls is not telling NHibernate to fetch the data your application needs. NHibernate has a feature called lazy loading that can negatively impact the performance of your application.
In this blog post I will demonstrate how lazy loading could potentially ruin the performance of your application. I will show you how you can analyse any problems caused by lazy loading. After that, I will show you how you can solve any performance problems that are caused by lazy loading.. Continue reading NHibernate Performance – Lazy Loading