I was going through the documentation of the JdbcBatchItemWriter but noticed that there is no way of specifying the batch-size to use for the jdbcTemplate
used by this class. I thought a class that has the name Batch
in it would have some mechanism to specify the batch size but looks like this is not the case. I now have the following questions regarding determination of batch-size :
- Is the batch-size equivalent to the commit-interval?
- If no, does the batch-size get calculated automatically by the framework?
Last but not the least,, is there a way to explicitly specify the batch-size to be used by the jdbcTemplate
in the JdbcBatchItemWriter
while defining the bean for the JdbcBatchItemWriter
class?