mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-25 21:04:51 +00:00
HHH-10190 - org.hibernate.engine.spi.ActionQueue#executeActions() optimization
This commit is contained in:
parent
ac2f06800e
commit
1729067cbc
@ -316,7 +316,9 @@ public void registerProcess(BeforeTransactionCompletionProcess process) {
|
||||
* @throws HibernateException error executing queued insertion actions.
|
||||
*/
|
||||
public void executeInserts() throws HibernateException {
|
||||
executeActions( insertions );
|
||||
if ( !insertions.isEmpty() ) {
|
||||
executeActions( insertions );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -330,7 +332,9 @@ public void executeActions() throws HibernateException {
|
||||
}
|
||||
|
||||
for ( ExecutableList<?> l : executableLists ) {
|
||||
executeActions( l );
|
||||
if ( !l.isEmpty() ) {
|
||||
executeActions( l );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user