Skip to content

EntityManager clear behaviour #220

@jamescarter

Description

@jamescarter

Batoo seems to rollback the transaction when calling EntityManager.clear(), while Hibernate and EclipseLink do not (the transaction will stay open until explicitly committed or rolledback).

I noticed this when attempting to optimise the import speed. When calling ((EntityManagerImpl)em).getSession().clear(); instead, the performance import between all 3 JPA implementations seems to be in the same ballpark. When not calling clear() to perform bulk imports, Batoo is much quicker

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions