Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Does hibernate increase performance?

 
Ranch Hand
Posts: 145
Oracle Java Linux
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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.
 
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??
 
Author
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.
 
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic