• 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

BatchSqlUpdate

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to insert large amount of data into a table. The data is in a flat file and basically each line matches to a row in table. I can first create a collection of <record> objects, then I use SpringBatchUpdate to insert. Can someone tell me what exactly good about this BatchSqlUpdate ? Is it much faster than inserting record by record ?

Furthermore, is its only advantage on speed ? Anybody thinks about memory consumption ? I still have to load 1 million records objects into memory first!! Does Spring have a way that I don't need to create 1 million objects in memory ?

Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic