In my code I have a camel-sql consumer which runs on default consumer.delay=500 and Max msg per poll is 5.
Consumer is fetching data from Customer table with Join on Customer_status table (Customer.Cust_id = Customer_status.Cust_id where Customer_status.Cust_id IS NULL).
Idea of maintaining Customer_status is to maintain status of processed record and to make sure next batch doesn't have records from previous batch (as per join condition)
But during program run, some batches have records which were picked in earlier batches.
So I am looking for a approach which can help me maintain uniqueness in each batch. Because my approach is not 100% working.
Using Camel with Springboot DB: Oracle