HHH-18571 Fix bug and correctly report effective batching

This commit is contained in:
Noel Trout 2024-09-05 11:04:27 +02:00 committed by Marco Belladelli
parent 98d9ac3654
commit cc6ca28466
No known key found for this signature in database
GPG Key ID: DBD6E257ABE9EA3D
1 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ public class LoadQueryInfluencers implements Serializable {
}
public boolean effectivelyBatchLoadable(CollectionPersister persister) {
return batchSize > 1 || persister.isBatchLoadable();
return persister.isBatchLoadable() || effectiveBatchSize( persister ) > 1;
}
public int effectiveBatchSize(EntityPersister persister) {
@ -336,7 +336,7 @@ public class LoadQueryInfluencers implements Serializable {
}
public boolean effectivelyBatchLoadable(EntityPersister persister) {
return batchSize > 1 || persister.isBatchLoadable();
return persister.isBatchLoadable() || effectiveBatchSize( persister ) > 1;
}
public boolean getSubselectFetchEnabled() {