I want to delete thousands of cases in my org preferably 25k at a time.
I have written a batch class for this. However during testing i found that its taking 30 minutes to delete 500 cases through batch job.
Then i switched to using data loader for the same job. Here also the time taken to delete cases remained the same.
After checking everything it seems for deleting each case recalculation of sharing rules/case sharing rules is triggered which takes up most of the time.
However this rate is not feasible to me as i need to delete 1 Million cases from my org without reducing the overall performance of the appilcation.
Is there anyway I could speed up the deletion of cases?
Any help regarding this will be hugely appreciated.