Nézz SQL outputot. Tippre az a gond, hogy nem batch update-et nyomsz, hanem egyesével update-et. Az iszonyat lassú lesz, főleg ha az egész előtt van egy JPA is. https://www.baeldung.com/jpa-hibernate-batch-insert-update