I have to load around 15 million lines of data in a DB2
database - using java
.
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.
In this scenario - I need something
- Fast
- Stable
I am not really worried about
- Code reuse
- Modularity
- Testability
Looks to me like, a batch insert using simple java
is the way to go. I am aware of Spring Batch
but do not know if it is worth the effort to add that layer.
Question to group - what would you suggest. Anything in Java / Java EE
world is an acceptable solution (as long as it does not require software that we need to buy).