I suggest, minimize the use of cursors if you are using to fetch the data from your source tables. Instead, build information models to arrive the target structure and directly insert the data to the target schema with out a loop context . Inserting or updating in a loop(especially or 1 million records or so) will degrade the performance .
--> Or share the code or process flow , so that we can together analyse and solve it .
Sree