-->
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: Removing Index Causes Mass Hydration from HQL Query
PostPosted: Tue May 02, 2006 5:53 pm 
Newbie

Joined: Tue May 02, 2006 5:46 pm
Posts: 1
Without changing any code, a given HQL query which does not hydrate child nodes begins to hydrate the child nodes after removing an index directly from the database. There were no updates done to the hbm.xml file nor any change to the code. The object being queried is reasonably complex. lazy loading is enabled for the relationships.

It seems strange that the behavior of Hibernate is dependent on the existence of an index in the database, even when no changes have taken place in the code or configuration. Obviously, I know the existence of the index can be determined by hibernate.

Under what situations and why would a query that does not hydration with an index start doing hydration without that index?

Thanks.

--Tim


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.