I have a situation where I am using Spring Batch framework with JdbcCursorItemReader approach.
The problem is my query takes longer duration which is close to 1.2 to 1.5 mins to process records (work is in progress to optimize).
Chunk size is set to 60K.
In non-prod env, the task successfully processes the records to be pulled for a day (<60K) and completes.
Note:
- Total records in the table in non-prod: ~40-50K
- Total records in the table in prod: ~100-150K
But it appears that in prod, the task is not pulling entire set of records from the database (SQL SERVER)
For e.g. total no of records to be pulled for a day's data in DB is 25148. But the task pulled only 5148.
I am unable to replicate this issue in non-prod.
Any suggestions will be helpful.