Spring Batch: Which ItemReader implementation to use for high volume & low latency

Viewed 15477

Use case: Read 10 million rows [10 columns] from database and write to a file (csv format).

  1. Which ItemReader implementation among JdbcCursorItemReader & JdbcPagingItemReader would be suggested? What would be the reason?

  2. Which would be better performing (fast) in the above use case?

  3. Would the selection be different in case of a single-process vs multi-process approach?

  4. In case of a multi-threaded approach using TaskExecutor, which one would be better & simple?

2 Answers
Related