j-easy / easy-batch

The simple, stupid batch framework for Java
https://github.com/j-easy/easy-batch/wiki
MIT License
611 stars 199 forks source link

Question : About writer line by line #382

Closed old741 closed 4 years ago

old741 commented 4 years ago

Hello , i use v5.3.0 Is it possible to write line by line instead of loading all into memory and writing it batch by batch in csv file at the end ? If possible how do it ? Thanks

fmbenhassine commented 4 years ago

Hi,

You can do that by setting the batch size to 1, see job configuration. The idea of bulk writes is to flush records in batches instead of one by one for better performance (jdbc batch updates is the typical use case).