Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » SessionProfiler, count number of queries executed during transaction
SessionProfiler, count number of queries executed during transaction [message #958819] Fri, 26 October 2012 08:37 Go to next message
Jorg Heymans is currently offline Jorg HeymansFriend
Messages: 26
Registered: July 2009
Location: Belgium
Junior Member
Hi,

The SessionProfiler (http://wiki.eclipse.org/EclipseLink/Examples/JPA/Monitoring) looks quite interesting. In order for us to keep tabs on our use case performance it would be helpful if we could group the statistics on a per use-case (= 1 transaction) basis. So basically I would like to get statistics on all queries and fetches (both cache and database) from the beginning of the transaction until it ends.

Can the session profiler be used / adapted in this way or should i look at other ways of doing this ?

Thanks
Jorg
Re: SessionProfiler, count number of queries executed during transaction [message #964743 is a reply to message #958819] Tue, 30 October 2012 19:18 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You can set the PerformanceProfiler or PerformanceMonitor directly through code if you only wish to set it for a specific duration.

Unwrap the EntityManager to a Session and call setProfiler().


James : Wiki : Book : Blog : Twitter
Previous Topic:DynamicEntity is not Serializable
Next Topic:Query error/JPQL Exception
Goto Forum:
  


Current Time: Fri Apr 26 03:09:19 GMT 2024

Powered by FUDForum. Page generated in 0.03713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top