Salesforce
PDII · Question #184
Which statement is considered a best practice for writing bulk safe Apex Triggers?
The correct answer is A. Add records to collections and perform DML operations against these collections. See the full explanation below for the reasoning.
Question
Which statement is considered a best practice for writing bulk safe Apex Triggers?
Options
- AAdd records to collections and perform DML operations against these collections
- BInstead of DML statements, use the Database methods with allOrNone set to False
- CAdd LIMIT 50000 to every SOQL statement
- DPerform all DML operations from within a Future Method
How the community answered
(42 responses)- A83% (35)
- B10% (4)
- C5% (2)
- D2% (1)
Community Discussion
No community discussion yet for this question.