I do not wish to paste the HUGE trigger this is related to (several hundred lines). However, a long time ago when it was first written, I believe it was MEANT to update "all accounts affected" with ONE "update" command at the end, while right now, it's executing "update" after each account (which I believe is attributing to the very limited number of records that can be touched in a single batch, between 10 and 50).
update accObj;
//updateList.add((Account)accObj);
The first line is currently executed after each Account is processed. I BELIEVE the second line was previously used to accumulate "all accounts to run update against" so that you could then "update" AFTER ALL accounts were done being touched. I cannot find reference to how I'd notate the "update" command if this is true. I am imagining it is something like:
update (updateList);
Could someone verify? I don't want to trial-and-error this, find out it sort of works, deploy it and... cause issues by virtue of an ASSumption.
Thanks.