Quote:
My understanding is that if you're using batch inserts, internally there's nothing that will guarantee your batch commits based on a time interval prior to hitting your batch size?
Affirmative,
there's nothing hat will flush your batch based on a time interval prior to hitting your batch size!
But on the other hand I also cannot figure out, for what purpose hibernate should do something like that.
Usually applications do use at least READ-COMMITED isolation level,
so other transactions cannot see the modified data until your transaction is commited.
So it this sense it changes nothing if your batch is flushed earlies or later!
N.B.: when the batch size is completed, the batch gets flushed (transaction continues) not commited!