NHibernate Stadistics – Go Fabio Go

Fabio Maulo, important developer at NHibernate team, always was contributed with patchs to NHibernate, now it’s porting many features from Hibernate 3.2.5. GA -you can see here and here. Now go for Hibernate Statistics

This it’s the best part of the post, when calculate the cache hit-ratio:

double queryCacheHitCount  = stats.getQueryCacheHitCount();
double queryCacheMissCount = stats.getQueryCacheMissCount();
double queryCacheHitRatio = queryCacheHitCount / (queryCacheHitCount + queryCacheMissCount);

Cool uh?

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>