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
|