• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Does hibernate increase performance?

 
Ranch Hand
Posts: 145
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic