Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Performance issues with TriggerActionFlow #64

Merged
merged 6 commits into from
Oct 3, 2021

Conversation

mitchspano
Copy link
Owner

@mitchspano mitchspano commented Oct 3, 2021

  • Created an abstract FlowTriggerRecord class to hold the records that are being processed during trigger execution
  • Enable definition of that class at the SObject_Trigger_Setting level
  • Use the index in the newList as a static "breadcrumb" to tie records updates back to the newRecord during before Insert and before Update contexts
  • Updated readme

Before: MS to perform "GetOldRecord" on 200 cases : 15861
After: MS to perform TriggerRecord flow update on 200 cases : 2444

Fixes #56

  • Tests pass
  • Appropriate changes to README are included in PR

Fixes #56

- Created a virtual `TriggerRecord` class to hold the records that are being processed during trigger execution
- Created an interface for defining the name of the class responsible for constructing typed  obects of a subclass of `TriggerRecord`
- Enable definition of that class at the `SObject_Trigger_Setting` level
- Use the index in the newList as a static "breadcrumb" to tie records updates back to the newRecord during before Insert and before Update contexts
- Updated readme

Before: `MS to perform "GetOldRecord" on 200 cases : 15861`
After: `MS to perform TriggerRecord flow update on 200 cases : 3033`
Make all examples of use Opportunity SObject
@mitchspano mitchspano merged commit 64b9467 into master Oct 3, 2021
@mitchspano mitchspano deleted the feature/improveFlowPerformance branch October 3, 2021 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance Issues When using GetOldRecord in Flow
1 participant