-->
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: Lazy loading - tracking the object graph
PostPosted: Sun Jul 27, 2008 6:43 pm 
Newbie

Joined: Sun Jul 27, 2008 6:36 pm
Posts: 1
Hi,

I've got a fairly complex schema with dozens of buisiness objects with "interesting" interactions between them.

About half the properties are LAZY fetched, with the rest being EAGER.

I am suffering from various performance issues where hibernate pulls in a huge object tree, but I'm struggling to figure out what is pulling what in.

I have had a brief look at the SQL trace, but all it tells me is that things are being pulled in - not why they are :)

I've also tried debugging it through the stack traces - trying to look at the variables to see what pulled which objects in!

Is it possible to log or otherwise track what hibernate pulls in when?
I would ideally like to know: Object pulling it in, whether it is EAGER or LAZY fetching, and the resultant object(s) that were pulled in. This would enable me to put together a graph showing what pulled what in where.

If this isn't possible, are there other methods which might be useful to track down why this excess information is pulled in?

Thanks a lot,

Bob


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.