-->
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.  [ 2 posts ] 
Author Message
 Post subject: Debug mode loads child data when fetchtype is Lazy
PostPosted: Fri Jul 15, 2016 8:13 am 
Newbie

Joined: Tue Oct 09, 2012 1:05 pm
Posts: 1
I am looking into performance issues for hibernate application. One of the Parent class has many child classes which are lazy loaded.
For testing the performance, i thought of debugging and started in debug mode but to my suprise, even thought the child classes are lazy loaded , i still see data retrieved from DB to parent and size of the child is non zero.

Is this the expected behavior or do i need to tweek anything to make it work?

Thanks,
Santhosh


Top
 Profile  
 
 Post subject: Re: Debug mode loads child data when fetchtype is Lazy
PostPosted: Fri Jul 15, 2016 9:56 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
During debugging, the IDE is triggering the Proxy initialization since it has to show you how the entities look like in the Debug Inspector.
Logging all SQL statementsis a much better approach in your case.


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

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.