Spring JPA deleteInBatch causes StackOverflow
in your case, the delete query will be translated by JpaRepository
to be looks like this.
delete from [table_name] where [criteria] = id or [criteria] = id (and so on...)
the jvm throws a stack overflow error because the HqlSqlBaseWalker
is trying to search all the or (or basically the where
criteria) statement
I guess, in your case, you could try to generate your own delete query and then execute it or you could try to split the data into few lists.