Am working on fetching the data from an third party API and then I want to insert those record in to Oracle database.This will occurs on hourly basis. Sometimes the API returns more than 50,000 records for an hour. So that time , it takes so much of time to insert the record(Absolutely record size too large). But I want to know is there any other way to increase the performance of the insert query.
Following is the code I used for inserting the records:
List<ClassName> retrievedList=util.getResultFromApi(); //The function getResultFromApi may returns more than 50,000 records.
userInfoRepository.save(retrievedList);
UserInfoRepository is my JpaRepository. Can anyone please help me with the suggestions.