-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: howto log queries with the number of fetched/updated objects
PostPosted: Mon May 11, 2009 6:56 am 
Newbie

Joined: Wed Jan 03, 2007 6:00 am
Posts: 10
Hi,

Is there a simple way to log both:
- each SQL request, particularly select request, sent to the database
- with the number of fetched objects or updated objects
?

I have a OutOfMemoryError during a long-running test, and I suspect a single query to fetch much more data than expected.

So, having the above logging capabilities would be quite interesting.

Any (other) idea ?
Thanks.

It would be neat to be able to give a symbolic name to all queries (for all API/ways enabling to express queries) and that Hibernate could log activities related to that queries, particularly, the number of fetched/updated objects.

Regards,
Dominique


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.