I have a requirement using Spring Boot and Spring Batch where i need to read data from one database which returns the records like below
Id1 Select * from Table1
Id2 Select * from Table2
Each query will be executed in different database and will return over 100k records Below are the queries i am stuck with
Pass the query to the reader (i.e from one step to other step)
Dynamically read the queries and fetch the records using
JdbcPagingItemReader, as each query would return > 100k records and write with item writer.
All the queries will return the same item/pojo.