Im using the saveAll method by spring-data-jpa.
I know that when i update an entity, hibernate needs to re-attach the detached entity and thats why before the update it executes select statements.
But when i try to update about 10.000 entity it means also 10.000 select will be executed which is a performance issue.
Isnt there any way re-attach that detached entites as bulk?