Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Create JDBCBatchItemReader for reading multiple records at a time [BATCH-2548] #1054
It would be better, that if we have a reader with configurable chunk size, that would return list of Items (something like AggregateJDBCItemReader).
No further details from BATCH-2548
Mahmoud Ben Hassine commented
The contract of an item reader is to read one item at a time. Making it return multiple items would be a breaking change and more importantly not compatible anymore with the mechanics of retry/skip that Spring Batch provides.
That said, the interface is generic, so nothing prevents you from making an item reader return a list of items. However, we would not include such an implementation in the framework, this would be better contributed to the spring-batch-exetensions repository if you want.