How do you handle with bulk deleting by an array of IDs in Spring Data JPA?
问题 Now I have a class User, I get a request data of an array from the jsp or html . list this Integer[] arr=[5,6,9,10,62,52,21] and then I use two methods to finish bulking deleting action. @Transactional @Override public void deleteUser(Integer id) { oneRepository.delete(id); } @Transactional @Override public void deleteSomeUser(Integer[] ids) { for (Integer id : ids) { deleteUser(id); } } I want to know that if it's a more efficient method to finish this action. you can see my logs: it seems