I have an update query in JPA/ Hibernate like this:
@Modifying
@Query(value = "UPDATE dogs d " +
"SET d.active = 0 " +
"WHERE d.id IN (:dogIds) AND d.active = 1",
nativeQuery = true)
void softDeleteDogs(List<Long> dogIds);
I was wondering if having a large number of items in the dogIds
list will cause an issue in MySQL when executing a query (and thus, maybe I would need to paginate that list instead). Any ideas?