HHH-10190 - org.hibernate.engine.spi.ActionQueue#executeActions() optimization
This commit is contained in:
parent
ac2f06800e
commit
1729067cbc
|
@ -316,8 +316,10 @@ public class ActionQueue {
|
||||||
* @throws HibernateException error executing queued insertion actions.
|
* @throws HibernateException error executing queued insertion actions.
|
||||||
*/
|
*/
|
||||||
public void executeInserts() throws HibernateException {
|
public void executeInserts() throws HibernateException {
|
||||||
|
if ( !insertions.isEmpty() ) {
|
||||||
executeActions( insertions );
|
executeActions( insertions );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform all currently queued actions.
|
* Perform all currently queued actions.
|
||||||
|
@ -330,9 +332,11 @@ public class ActionQueue {
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( ExecutableList<?> l : executableLists ) {
|
for ( ExecutableList<?> l : executableLists ) {
|
||||||
|
if ( !l.isEmpty() ) {
|
||||||
executeActions( l );
|
executeActions( l );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepares the internal action queues for execution.
|
* Prepares the internal action queues for execution.
|
||||||
|
|
Loading…
Reference in New Issue