1. Batch inserts with EJB3/Hibernate/Annotations forum.hibernate.orgI've written an application that will read a CSV file and take the contents and for each line, a row is inserted into the database. However I can't seem to get the application to batch insert the objects. It's taking 20 minutes to load a 1.3MB file and an hour to do 2MB file(about 50k rows). Is I've made sure that ... |
2. Hibernate annotations - batch insert statements? forum.hibernate.orgHi, I have a site that inserts an entry into the database every time a link is clicked. This information is for archiving only and not critical to the operation of the site. Is there a way to tell hibernate (using annotations) to batch these inserts and only go to the database, say once a day or after 500 have accumulated? ... |