Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Hibernate and performance issues

Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on a project that uses hibernate but we are having lot of issues in performance due to hibernate. Some of the members of my group are convinced that hibernate is no good and only results in an extra level of complexity, they think it is better to go with normal jdbc code.

What do you guys think, can or should hibernate be avoided? Do you have any similar experience working with hibernate.
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
Poorly implemented Hibernate performs badly. Well implemented (and suitably tuned) Hibernate performs quite well. For example, straight JDBC does not hit any of the caches available to Hibernate. Hibernate will generate some SQL that it is relatively easy to see could be optimized, most of which can be tuned by tuning queries and mappings. Where this is a real headache (and you'll only know this if you've profiled the SQL) you can use direct SQL from Hibernate.

Do your colleagues have any concrete reasons to point the finger at Hibernate? There is no point doing anything with regards to performance changes without a definite reason.
New rule: no elephants at the chess tournament. Tiny ads are still okay.
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic