Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

When to use hibernate ?

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a few hundred lines of code which read messages from a messaging system that uses UDP protocol and is a high volume, low latency system.
The messages are parsed and the data persisted to a database using a single insert statement.

Is it worth using hibernate in this situation ? I personally do not think so since theres only one insert statement and the overhead of loading up all the libraries required by Hibernate itself will be a performance hit.

Any thoughts, ideas appreciated.

Thanks,

J.C
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

James Clarke wrote:Hi all,

I have a few hundred lines of code which read messages from a messaging system that uses UDP protocol and is a high volume, low latency system.
The messages are parsed and the data persisted to a database using a single insert statement.

Is it worth using hibernate in this situation ? I personally do not think so since theres only one insert statement and the overhead of loading up all the libraries required by Hibernate itself will be a performance hit.

Any thoughts, ideas appreciated.

Thanks,

J.C



You think perfectly correct I would say. For only insert statement, hibernate wouldn't be good pick. Hibernate is basically to play around database through java objects like transactions, caching, mapping etc. Also to use the object oriented features on database side (For Example: Inheritance Mapping). From my point of view you should used JDBC API for simple insert instead Hibernate.

 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic