Closed fernando-silva closed 6 months ago
Batching works just fine. This is the output of the MySQLIdentityStatelessSessionTest.testPersist
test case:
Connection:4, Time:6, Success:True, Type:Prepared, Batch:True, QuerySize:1, BatchSize:2,
Query:["insert into post (created_by,created_on,title,updated_by,updated_on,version,id) values (?,?,?,?,?,?,default)"],
Params:[(12, 93, High-Performance Java Persistence, Part 1, 12, 93, 0), (12, 93, High-Performance Java Persistence, Part 2, 12, 93, 0)]
I just executed using master branch (Hibernate 6.4.4.Final) and test failed with expected assert error
That may be because you are not using this commit
Indeed it's using
Starting in Hibernate 6.2 the logic for ID generator changed which broke the current workaround for MySQL batch insert. See https://hibernate.atlassian.net/browse/HHH-16692