• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

hibernate vs JDBC

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a scnario where in once a week a batch program will run and it will process 2 million records. we have to retrieve them from a a file, store them in a table and process the records and update the table.

For the database part, we are deciding whether to use the a OR mapping tool like Hibernate or use the plain JDBC queries. There are nearly 40 tables. Our point of concern is that Hibernate may take more time and memory for processing and since this is a large amount of data, we may have a performance hit than using plaing JDBC calls for retrieval and updates. Is that assumption correct? Will there be a performance hit?
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you didn't mention the size of the record. 2 mil doesn't sound that much. Hibernate should be ok.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question would be better off in the JDBC forum...
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are still going to create the JavaBeans that Hibernate would require even if you still use JDBC, the biggest hit you may encounter is at startup when Hibernate reads all it's config data and starts your session factory. Beyond that it will likely be the same either way.
 
Your mother is a hamster and your father smells of tiny ads!
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic