Hibernate version:
3.2.6
Name and version of the database you are using:
PostgreSQL 8.3
Hi,
I've got a problem with import data from file to the database.
I'm using standard csv file but this file has over 1 000 000 rows.
One row represent one object so I wrote basic import function with this scenario:
Code:
-load csv file
-start loop
-get row
-create object and set data from row
-save object using hibernate (I'm using HibernateCallback())
-end loop
-close file
Problem is in the performance. I need long long long time to execute this import. I was searching
for better solution how import a huge amount of data to the database using hibernate but nothing useful found.
I think it's common problem of the most applications. So if anybody knows it will really help me.
Thank you for every answer.
Best regards
Martin