I've looked at this before but it seems to only expose things I can't really use. (You mean ISessionFactory.Statistics right? Please correct me if I'm wrong.)
I would like to show the time spent in the database during a page request on the webpage. So the time should be recorded per thread/request. Thanks for the fast response! Greets, Bruno From: [email protected] [mailto:[email protected]] On Behalf Of Fabio Maulo Sent: vrijdag 2 oktober 2009 15:03 To: [email protected] Subject: [nhusers] Re: How to measure database time Enable/study NHibernate's statistics. 2009/10/2 Bruno Wouters <[email protected]> Hi all, Is there a way to measure the total time spent by the database executing queries etc? I would like to display the number of seconds that are spent by the database. It would be nice if I for example could have a custom IDbCommand so I can measure the time spend in the ExecuteNonQuery, ExecuteReader, . methods. I also looked at IInterceptor.PostFlush & PreFlush, but this is only the time writing to the database. I should also have the time while reading. Any ideas? Thanks! Greets, Bruno -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
