Relative Content

Tag Archive for spring-batch

Spring batch reader large dataset

I have following reader. I need to read 10 K records at a time so I set the fetchsize to 10 K but how I can make sure if I have large data set to read from database my reader shouldn’t throw connection time out error. Do I need to implement reader in a way to get the connection, read it and close the connection to get away from time out error?

Spring batch write items not on chunk size

I have an following JdbcCursorItemReader and writer.I am writing items according to chunk size but now I want to make sure that I need to write every time 10K items from the reader in one json file which I will get from table1. So that when my items are written I can delete those entry from table1.