While studying for my Platform Developer 1 exam, I came across this line. Could someone please explain how this is the case?
Question: How can a developer avoid exceeding governor limits when using an Apex Trigger?
The two correct answers provided are:
A: By performing DML transaction s on lists of sObjects. (This one I understand)
B: By using Maps to hold data from query results.
"B" has me stumped:
- How does using the Map data type help to avoid exceeding governor limits.
- May I please see a code example.