I have written an application that fetching records from one DB and runs all those data in another DB to check proper error less data.
ir in DB1 i have million records, My application fetches 1000 records from DB1 and runs a query in another db say DB2 with those records to find out proper data.
My problem here is java by default fetches only 1000 records, but i would need to fetch minimum of 6000 records
How can i do that in java, and I am using preparedStatement (My researches on google and stackoverflow says FetchSize cannot be used for prepare statement)
Is there any special function or shld we write an algorithm to fetch 6000 data and add them to an ArrayList and use that in another DB ???