How To Insert Over 10,000 Records Using Apex
Now this is very common use case and everybody will think of batch apex, which is obviously correct. But suppose you have below use case. When user insert an Account, you need to insert 15K related Contacts. Now this is tricky, why? Because for sure you will query Account in start method and build your …