nhprof

NHibernate taking a long time to run query

回眸只為那壹抹淺笑 提交于 2019-12-21 05:19:25
问题 This is being done using Fluent NHibernate I've got a NHibernate lookup that is retrieving data from one table. If i take the generated sql and run it through query analyzer, it takes ~18ms to run. Using NHProfiler, i'm getting the duration of this query as ~1800ms - 100 times longer than sql ! Query duration - Database only:1800ms - Total: 1806ms The object that is being populated contains a child class, but this child is being loaded from the NHibernate 2nd level cache The data that is

How do I configure NHibernate Profiler so I can enable/disable it without changing code? [closed]

吃可爱长大的小学妹 提交于 2019-12-11 07:51:56
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I've been trying to follow the directions on the NHProf site but can't seem to make it work. What am I missing? I put a log4net configuration section in

NHibernate taking a long time to run query

六眼飞鱼酱① 提交于 2019-12-03 16:20:54
This is being done using Fluent NHibernate I've got a NHibernate lookup that is retrieving data from one table. If i take the generated sql and run it through query analyzer, it takes ~18ms to run. Using NHProfiler, i'm getting the duration of this query as ~1800ms - 100 times longer than sql ! Query duration - Database only:1800ms - Total: 1806ms The object that is being populated contains a child class, but this child is being loaded from the NHibernate 2nd level cache The data that is being returned is paged (50 per query) although as far as i can tell, this shouldn't make any difference I