Ayende @ Rahien

It's a girl

NH Prof & Teaching NHibernate

I have taught NHibernate both before and after NH Prof was available. I have to say, there is absolutely no way that I can compare the two.

NH Prof, I know that I am not suppose to say that, but I love you. I really love you!


I am saying this after spending 4 days doing intensive NHibernate stuff, a full 3 days course and NHibernate consulting day. And NH Prof made it so much easier that I cannot really describe.

Participants in my course can testify how at several points I just stared at the profiler in shock, not believing the breadth of information that it gave me. More specifically, error detection can be a true godsend in many cases. But just being able to flip between the code and what is going on is invaluable to explain what is going on. And today I had the chance to use it as a detective tool, trying to figure out what exactly is causing a page to issue hundreds of requests. The Stack Trace feature was invaluable in tracking down exactly what is going on.

Just for that alone, it was worth all the time, effort and money that I put into it.


05/31/2009 08:54 PM by

a) I couldn't agree more. I worked with NH before and after buying NHProf and I can't say how much easier it has made my life.

Before I was guessing, now I'm knowing (besides the errordetection is just awesome when the NH exception is wrapped in several inner exceptions or lost along the way.


I'm just trying to get into Caliburn and took a peek at the NHProf code and believe to have found a spelling mistake in your NHProf code.

in App.cs: private static void UnhanledException(Exception exceptionObject)

I believe that should say UnhandledException() ..

05/31/2009 09:17 PM by

As an attendee on the course, I can testify how much benefit there was from NHProf as a learning aid. The hood is well and truly off NHibernate and you get to see exactly what it is up to! Its simple to make changes to the configuration and see exactly how they affect the SQL issued to the db. Plus, it gives you handy alerts when I recognises an improvement can be made. I know it sounds like cheesey sales blurb, but I really look forward to using it to troubleshoot and tune up our queries!

Tobin Harris
05/31/2009 10:22 PM by
Tobin Harris

Totally agree.

In the "NHibernate in Action" book, we strongly recommended observing the log files to get an understanding of what NHibernate is doing behind the scenes.

I actually think that NHProf is about 100x better than that. I'd recommend it for anyone learning NHibernate. Even if you're just trying out NHibernate and don't want to commit to a tool purchase, the 30 day trial of NHProf will give you an enormous helping hand during the learning process.

06/01/2009 12:29 AM by

shameless self promotion:)

Comments have been closed on this topic.