title: jpa spring boot - hibernate insert slow
body: <p>I have three lists of entities that i'm trying to save to the database.</p>
  
  <p>in total it's about 1000 entites it have to persist. </p>
  
  <pre><code>entityRepo.save(EntityList);
  </code></pre>
  
  <p>However this takes 4-5 minutes to complete. - And i noticed its doing some selects before the inserts, I assume it's hibernate dirty checking to see if it needs to update or insert.</p>
  
  <p>Anyway to disable this and improve the speed of hibernate insert ?</p>
  
  <p>been looking into flushing but not sure how to do it when saving an entire list at once ?</p>