Loading tutorials
List, Set and Map. You should also know simple SOQL and DML, and that Trigger.new holds the records of the current batch. The chapter covers which collection to use for which job, and the edge6 min readinsert, update, delete, undelete, upsert, merge) are the second most common cause of governor limit failures, after SOQL queries in loops. This chapter shows how to find DML inside loops and replace it with a collect-then-write pattern.7 min read@IsTest. It also assumes you know insert and update, basic SOQL, and the bulkification patterns from the earlier chapters (Sets, Maps and Lists, no SOQL or DML in loops). Here you will learn to prove that a trigger or class6 min read@IsTest classes and Test.startTest() and Test.stopTest().6 min readTrigger.new and Trigger.oldMap hold up to 200 records per chunk. Here you will learn why triggers re-fire themselves, what Salesforce7 min read