Thursday, February 28, 2019

Improve Performance on Records by Changing Workflow/Script Event Type

Having multiple workflow and/or scripts on a record can slow down how fast it loads.  If some are not used in all circumstances it is better to be more specific about when they run.  For workflows this means specifying a Trigger Type, Event Type and any conditions.  Doing this will prevent the workflow from running.  For example if a workflow is only used when a record is created, then putting requirements on when it runs will prevent the workflow from looking at every action and transition in the first state if none of them will get triggered anyway.

Changing scripts so that they have an Event Type can also improve performance if there are multiple scripts on a record.

No comments:

Post a Comment