﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>jalchr commented on NHibernate Profiler update: Client Profile &amp;amp; NHibernate 3.x updates</title><description>I used the profiler and its pretty neat. One thing I found troubling is the N + 1 problem. 
  
I was expecting the profiler to "highlight" the code that is doing this and suggest (may be) a way to avoid this thing. Not only a stack trace. 
  
If it could show the Query source not just the "Sql" version ... that would really shed some light .
  
Cause I'm eagerly fetching the required data, still a lazy loading of the same data is triggered from somewhere which calls the database for N + 1 times (for same record). 
  
  
What I would like to see in the profiler, in addition to the sql query, the source query or entity which "caused" this query to go to the database with a hint to do a better thing ... 
  
  
I hope this is not hard to implement ...
</description><link>http://ayende.com/4780/nhibernate-profiler-update-client-profile-nhibernate-3-x-updates#comment2</link><guid>http://ayende.com/4780/nhibernate-profiler-update-client-profile-nhibernate-3-x-updates#comment2</guid><pubDate>Tue, 22 Mar 2011 10:00:51 GMT</pubDate></item><item><title>Daniel Lang commented on NHibernate Profiler update: Client Profile &amp;amp; NHibernate 3.x updates</title><description>This update ist pretty awesome and helps me a lot! Thank you!
</description><link>http://ayende.com/4780/nhibernate-profiler-update-client-profile-nhibernate-3-x-updates#comment1</link><guid>http://ayende.com/4780/nhibernate-profiler-update-client-profile-nhibernate-3-x-updates#comment1</guid><pubDate>Sun, 13 Mar 2011 18:30:45 GMT</pubDate></item></channel></rss>