Friends,
I have order tables which have minimum 100 Million records in each table. We have a job running which invokes a stored procedure which deletes atleast 50K (MIN) and 200K (MAX) records per day.
I'm currently using SQL BULK COLLECT to delete records from the table. Currently it is taking more than 4 hours for deleting 50K which is dead slow.
After searching in google, Figured out CTAS method ,i,e Creating table and keeping the records which we want and drop the existing one and rename the temp table. I CANNOT DO THIS AS THIS OPTION WAS NOT ACCEPTED AS THE TABLES ARE MORE CRITICAL.
Could you please suggest some solution to improve the performance of the same?
Thanks in advance!!