问题
I am using spring-batch MultiResourceItemReader to read a directory of XMLs and delegating it to StaxEventItemReader.
The commit-interval on the chunk acts on MultiResourceItemReader i.e. the commit happens for each XML.
I want to make the commit-interval act on StaxEventItemReader so that I can commit my huge XML data in chunks instead of one XML at a time.
Any help?
来源:https://stackoverflow.com/questions/29129056/spring-batch-multiresourceitemreader-vs-commit-interval