IntermediateLesson 18 of 37
DML and governor limits
Save data, and stay inside the guard rails.
apex
Account a = new Account(Name = 'Acme');
insert a;
a.Phone = '555-0100';
update a;
delete a;
List<Database.SaveResult> results = Database.insert(records, false); // allow partial successPer-transaction limits (synchronous; asynchronous gets higher limits):
- 100 SOQL queries, 50,000 rows returned
- 150 DML statements, 10,000 rows
- 10 seconds of CPU time, 6 MB heap
- 100 callouts