This question is regarding performance of an application using hibernate .
If i have a parent P (with cascade save-update to children C's ) .
If we have 1000 (new/dirty) children (already referred in P) .
And if we call save on Parent P , this tries to save Parent and 1000 Children of this parent.
In this case does hibernate use batch updates ?
or
Should we explicitly use batch update implementation in our code
like :
Code:
while(hasNextChild()) {
for(int i=0;i<30;i++) {
session.save(c)
session.flush();
}
}
Thanks,
Kurt