• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ORM performance in general

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We're reviewing Hibernate vs. raw JDBC for our application design. In the development organization as a whole, there is a discussion regarding the performance implications of using an ORM (e.g. "ORMs are too slow").

I searched the archive but didn't find a thread on this, but I imagine it has been discussed previously. Could someone point me to a JavaRanch thread on this topic, or suggest another web resource that has a discussion of both sides of this topic?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it has been talked about tons of times.

Anyway, ORM is a layer above JDBC. And ORMs like Hibernate has a decent sized learning curve. But, if you know the ORM tool and all of its features, there are times that with caching and all I can make a query run faster through Hibernate than through straight JDBC.

For the most part with lazy initialization and some basic design principles, the performance addition is negligible, and the ease of reading code, coding time, and decreased maintenance you save far far outweighs the minute performance degradation where found.

And remember this is my personal opinion of ORMs. And if I were to see a project that had JDBC code I would run far away from that company, personally.

Mark

Mark
[ March 27, 2008: Message edited by: Mark Spritzler ]
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic