Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does hibernate increase performance?

 
Nancy Antony
Ranch Hand
Posts: 145
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Srinivas,

Which one is better to use direct JDBC codes or hibernate? Usage of hibernate increase or decreases the performance of application?

Regards,
nancy
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on how you use Hibernate (or JDBC) and how you measure performance.
 
anish jain
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:It depends on how you use Hibernate (or JDBC) and how you measure performance.

Can you please elaborate it more??
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Anish: Used poorly, Hibernate can have a huge negative performance impact. It doesn't *have* to, though. Performance can be measured in many ways, including factoring in developer productivity.
 
Fred Muhlenberg
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the very least, there will be some performance degradation. How much depends on implementation. Implement poorly and bad things happen.

However, balancing the loss of performance (however minor) is the increase in maintainability of your software.
You aren't spending countless hours developing and testing a home-grown solution.
The folks who developed Hibernate have already addressed (and mitigated) many if not almost all problems any home-grown solution seeks to address.

Plus, Hibernate is an accepted standard, well understood by the industry. You can hire engineers with expertise in Hibernate. With a home-grown solution, you can't.

-FM
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic