-->
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: Global configuration for default fetch strategy
PostPosted: Fri Jun 12, 2015 3:03 pm 
Newbie

Joined: Fri Jun 12, 2015 2:41 pm
Posts: 1
Hi,

We maintain two legacy systems one with 261 tables, more or less 548 classes and 82.192 lines of java code.

The problem is that our framework has migrated from hibernate-core-3.6.10.Final to hibernate-core-4.2.15.Final.jar, and
after the migration the pages with lots of queries take almost 10 times more than before.
We resorte to check database logs and we see that the system uses twice the SQL commands, it seems that the default fetch strategy has changed from eager to lazy.

With the old versiĆ³n 3.6, with eager fetch default, we use to control the tree depth with fetch_depth to 1 in configuration and everything works very performant.

We are looking for a way to set the default fetch strategy to eager like before, due to the size of the system we are looking for a way to make it globally not class by class.

Any help will be appreciated,

Thanks for reading,

Hans Poo, Welinux S.A.
Bombero Ossa #1010, oficina 800,
+56-22-3729770, Movil: +56-9-3199305
Santiago, Chile


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.