I have a java API which fetches records from source and inserts into a database table. Every time it runs, it fetches the whole bunch of records. I want add code to fetch th