I have a spring batch program with itemReader, itemProcessor and itemWriter.
Say I have 10,000 records to process. For each item I want to fetch data from several database table for deciding some conditions and adding some data.
I believe this will be done during processing.
Question: What is the best design to do this ? I am bit skeptic about running several Select queries for each item injecting SimpleJdbcTemplate in itemProcessor. Is there any other efficient way to do this ??
Thanks in advance!! Nik