adding data to database faster

时间:2018-02-03 08:29:36

标签: java-ee entitymanager

I am using JSF on JAVA EE with netbeans. I read a file line by line with a buffer reader to add the data to my database. It works properly but it is very long waiting time because I have one million of lines. To add the data to my database I am using the function persist which is in the interface Entity Manager (generated). I would like to know if there would be a way to make it faster ? Using big transactions maybe?

Thanks, Best Regards.

0 个答案:

没有答案