-->
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: Hibernate with Store procs VS Hibernate with tables,classes
PostPosted: Tue Oct 02, 2007 5:05 pm 
Newbie

Joined: Tue Oct 02, 2007 4:54 pm
Posts: 1
Hi Everybody,

I am in need of your great help.Actually I have to take a decision among hibernate with stored procs vs hibernate with entiy classes and tables.

My requirement here is to achive peformance.

Which way among these two ways provides good performance? and how can I prove that programatically?


It would be great, if u guide me.


Thanks,
Ramakrishna


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 5:38 pm 
Newbie

Joined: Wed Jan 31, 2007 5:48 pm
Posts: 4
Location: Nashville
Be aware that performance bottlenecks can occur in several places; it’s always a good idea to consider that Stored procs are part of the application code that has been moved to the DB server. Having a lot of StoredProcs can make your data access layer look lighter but you could create a performance bottleneck in the DB server, which can be more difficult and expensive to scale as opposed to scaling an application server.

Remember the DB server in most cases are shared, if your StoredProcs cause problems; it may affect other apps. In short, if you have a lot of SPs and you end up having the db server underperforming, you may need DBA help, but if you have no SPs and your data layer underperforms, you have only one place to look for problems (the code), you can use profiling tools to identify problems, and take appropriate actions, like throw in a new box, cheaper that a new SQLServer box and license.


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.