I had 12,000 contacts in my developer org and in the Developer Console, I used a simple Execute Anonymous to delete all contacts. However, I hit a fatal error
System.LimitException: Apex CPU time limit exceeded.
I then ran the same script* in an IDE (Welkin Suite) and executed it, and it worked fine. What's strange though is that the log returns 'Maximum CPU time: 11385 out of 10000', so I would assume it would have failed.
1) Any reason the execute anon script worked fine in the IDE instead of the developer console?
2) Any idea why it worked in the IDE even though one of the log statements indicates that it went over the CPU time limit?
List Contact> contactList = [SELECT Id, Name FROM Contact]; delete contactList;