Ayende @ Rahien

My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:


+972 52-548-6969

, @ Q c

Posts: 6,128 | Comments: 45,550

filter by tags archive

NHibernate Profiler update: Client Profile & NHibernate 3.x updates

time to read 1 min | 139 words

We just finished a pretty major change to how the NHibernate Profiler interacts with NHibernate. That change was mostly driven out of the desire to fully support running under the client profile and to allow us to support the new logging infrastructure in NHibernate 3.x.

The good news, this is done Smile, you can now use NH Prof from the client profile, and you don’t need to do anything to make it work for NHibernate 3.x.

The slightly bad news is that if you were relying on log4net conifguration to configure NH Prof, there is a breaking change that affects you. Basically, you need to update your configuration. You can find the full details on how to do this in the documentation.


Daniel Lang

This update ist pretty awesome and helps me a lot! Thank you!


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 ...

Comment preview

Comments have been closed on this topic.


  1. The worker pattern - about one day from now

There are posts all the way to May 30, 2016


  1. The design of RavenDB 4.0 (14):
    26 May 2016 - The client side
  2. RavenDB 3.5 whirl wind tour (14):
    25 May 2016 - Got anything to declare, ya smuggler?
  3. Tasks for the new comer (2):
    15 Apr 2016 - Quartz.NET with RavenDB
  4. Code through the looking glass (5):
    18 Mar 2016 - And a linear search to rule them
  5. Find the bug (8):
    29 Feb 2016 - When you can't rely on your own identity
View all series


Main feed Feed Stats
Comments feed   Comments Feed Stats