Thomson wrote:
Hm, you may try to disable all sorts of caching, but honestly speaking, hibernate may not be the right tool for bulk data processing.
Thanks Thomson.
even i tried by disabling second level cache , still the performance is same.
Is that happening because of Hibernate trying to get primary key from db and populate it into id field of persistent class during/after bulk insertion ?.
During bulk insertion using jdbc, i never keen on getting primary keys of inserted records and populating to id fields , mainly focus on whether they have been inserted successfully.
However, your suggestion is helpful for me.
So for bulk insertion , we have to depend on hand coded jdbc. am i right ?
Thanks,
nvseenu