Hello,
I have been searching for approaches to improve inserting performance with Hibernate in the past several days, Here are some suggestions I found:
Quote:
inserting data to DB can be very fast under Hibernate. Using Hibernate and Oracle we have achived about 2000 inserts/sec.
But you have to remember about few things:
1) Do not use default connection pool
2) make clear after 100-200 inserts
3) gnerate ID yourself (under Oracle Hibernate do it very very poor)
4) make commit after let say 1000-10000 inserts
Since I am pretty new to Hibernate, I would like to ask help on following issues? Examples and direction pointing are highly appreciated.
1) How to configure a connection pool other than the default one?
2) What's the best and easiest approach to generate ID without using those default ID generators? ( I am using Oracle and Hibernate, for each row, it seems that a select statement is generated to get the next id when I use the sequence ID generator)
Thanks so much and have a great day,
Jiao