Please help me this. I have a call to action in salesforce visual force page, that insert 16k records.
But as per salesforce Limitation, we can only update 10k Records in a DML Transaction
I divide the records into two Batch each of 8K
The first batch of the 8k insert
And the other batch of 8k is inserted through Future call
Error: CPU limit time Exceeded
I know many of you will give me the answer of Batch Class but I have a limitation of the user which is during batch if user clicks on cancel. if it's in the middle half of my record is inserted and mostly half or not.