Batch import takes too long

I need to import massive data into db. With java it takes too long to for example feed 25 million measurement points into db: it takes 16h.

What method are you using to import the data?

The Java maven lib the latest version.

Can you split the data into multiple batches?