hibernate-reactive icon indicating copy to clipboard operation
hibernate-reactive copied to clipboard

Error when inserting in batch with joined table inheritance

Open DavideD opened this issue 1 year ago • 2 comments
trafficstars

See https://github.com/quarkusio/quarkus/issues/38948

A test is available here: https://github.com/DavideD/hibernate-reactive/commit/10ab8cdf4b757917888e9929226c462028dbeb08

The test only fails when batching is enabled.

The problem is in the way we have implemented ReactiveMutationExecutorStandard#performReactiveBatchedOperations.

It shouldn't delegate to the super reactive class, it should instead implement the batching and mimic what's happening in MutationExecutorStandard#performBatchOperations

The test passes without batching. I will look into this after the upgrade to ORM 6.5.

DavideD avatar Feb 26 '24 09:02 DavideD

Hello, sorry to bother, any news about this? Or any alternative where I can use a batch size bigger than 1? I have endpoints taking more than 30 minutes...

MarciaBM avatar Apr 08 '24 15:04 MarciaBM

No news, sorry. But I've finished the upgrade to Hibernate ORM 6.5, so I might have time to look into this soon.

DavideD avatar Apr 09 '24 09:04 DavideD