title: using Hibernate to loading 20K products, modifying the entity and updating to db
body: <p>I am using hibernate to update 20K products in my database.</p>
  
  <p>As of now I am pulling in the 20K products, looping through them and modifying some properties and then updating the database.</p>
  
  <p>so:</p>
  
  <pre><code>load products
  
  foreach products
     session begintransaction
     productDao.MakePersistant(p);
     session commit();
  </code></pre>
  
  <p>As of now things are pretty slow compared to your standard jdbc, what can I do to speed things up?</p>
  
  <p>I am sure I am doing something wrong here.</p>