using Hibernate to loading 20K products, modifying the entity and updating to db
Posted
by Blankman
on Stack Overflow
See other posts from Stack Overflow
or by Blankman
Published on 2010-03-07T22:36:43Z
Indexed on
2010/03/07
23:11 UTC
Read the original article
Hit count: 160
I am using hibernate to update 20K products in my database.
As of now I am pulling in the 20K products, looping through them and modifying some properties and then updating the database.
so:
load products
foreach products
session begintransaction
productDao.MakePersistant(p);
session commit();
As of now things are pretty slow compared to your standard jdbc, what can I do to speed things up?
I am sure I am doing something wrong here.
© Stack Overflow or respective owner