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.