-->
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: Multiple EntityManager's to increase performance
PostPosted: Tue Sep 10, 2013 3:02 am 
Newbie

Joined: Wed Aug 07, 2013 11:54 am
Posts: 5
Hi there,

I have an application with a bunch of entities (>80 and growing) and a single EntityManager to handle them all, in all the different application processes.

My question is, since I have specific areas of my application where a much more reduced entitymanager would suffice (i.e. if I created a new entitymanager with only 8-10 entities to manage specific application areas where the business domain is much smaller) I am wondering if it would make sense to change my focus, and instead of having one huge entitymanager, I could have two or more smaller entitymanagers to deal with a smaller set of different entities. I believe that could have an impact on performance, since I have noticed that the smaller the entity set handled to the entitymanager, the more efficient it performs.

Can any expertise hibernate user give any hints on that?
Not to be used as a completely new strategy, but I believe it could fasten things up at some areas of my application.

Thanks for your time.
Carlos.


Top
 Profile  
 
 Post subject: Re: Multiple EntityManager's to increase performance
PostPosted: Wed Sep 11, 2013 6:00 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
I think that only start-up time will decrease. Using "smaller" sessions will work better... (Use flush()/clear() etc.)


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.