Can we use same instance of ThreadPoolTaskExecutor for two consecutive steps
recently i have been using same threadpool taskexecutor instance for two consecutive steps in batch job, below is the configuration for these beans, i want to know is it advisable to use same pool for multiple steps. How will it impact the performance and what are the downside of this configuration
In which scenario, Boolean variable keep on updating to true value in Spring Batch program
public class GEPX0101JobStep1Reader
implements ItemReader<List> {
/**
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.