title: Spring JpaRepostory delete vs deleteInBatch
body: <p>What is the difference between <code>delete(...)</code> and <code>deleteInBatch(...)</code> methods in JpaRepostory in Spring ? The second one "deletes items in one SQL statement", but what does it mean from the application/database perspective ? Why exists two different methods with the similar results and when it is better to use one or other ?</p>
  
  <p><strong>EDIT:</strong>
  The same applies also for <code>deleteAll()</code> and <code>deleteAllInBatch()</code> ... </p>