java - Optimizing data inserts for HibernateTemplate -


i have optimize database (especially insert) performance of legacy tool. tool has been written in java , data access layer spring + hibernatetemplate technology of choice.

the actual problem doing bulk inserts. have insert more 50k data calling hibernatetemplate.save() each. apparently inefficient way because of lack of time, cannot change implementation now.

what optimization patterns other changing implementation?

the things can think of, if want optimize code without modifying code :

if you're ready change code, follow the advices of documentation, , regularly flush , clear session while inserting data. or use stateless session.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -