title: Insert 15 million lines in DB2 database
body: <p>I have to load around 15 million lines of data in a <code>DB2</code> database - using <code>java</code>. </p>
  
  <p>To keep things simple, I am not going to talk about the format of the file, or the number of tables in the database. Let's say, it is only one table with 5 columns that is getting data from a huge single csv file. </p>
  
  <p>In this scenario - I need something</p>
  
  <ol>
  <li>Fast </li>
  <li>Stable </li>
  </ol>
  
  <p>I am not really worried about </p>
  
  <ol>
  <li>Code reuse</li>
  <li>Modularity </li>
  <li>Testability </li>
  </ol>
  
  <p>Looks to me like, a batch insert using simple <code>java</code> is the way to go. I am aware of <code>Spring Batch</code> but do not know if it is worth the effort to add that layer. </p>
  
  <p>Question to group - what would you suggest. Anything in <code>Java / Java EE</code> world is an acceptable solution (as long as it does not require software that we need to buy). </p>