HHH-10190 - org.hibernate.engine.spi.ActionQueue#executeActions() optimization
This commit is contained in:
parent
d8ab9c0905
commit
05c6d560b2
|
@ -316,7 +316,9 @@ public class ActionQueue {
|
|||
* @throws HibernateException error executing queued insertion actions.
|
||||
*/
|
||||
public void executeInserts() throws HibernateException {
|
||||
executeActions( insertions );
|
||||
if ( !insertions.isEmpty() ) {
|
||||
executeActions( insertions );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -330,7 +332,9 @@ public class ActionQueue {
|
|||
}
|
||||
|
||||
for ( ExecutableList<?> l : executableLists ) {
|
||||
executeActions( l );
|
||||
if ( !l.isEmpty() ) {
|
||||
executeActions( l );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue