Skip to content

refactor(SFT-2766): Performance issues when using many Conditional Email Notifications#2523

Merged
kjmartens merged 24 commits into
v5from
fix/SFT-2766-event-cleanup
May 22, 2026
Merged

refactor(SFT-2766): Performance issues when using many Conditional Email Notifications#2523
kjmartens merged 24 commits into
v5from
fix/SFT-2766-event-cleanup

Conversation

@gustavs-gutmanis
Copy link
Copy Markdown
Contributor

Adding memoization, and memoizing as much as possible to reduce redundant object hydration and database calls.

…onditions

* tightening rule lookup
* optimizing event dispatching for registering form types
refactor: Use Memo cache in `getAllIntegrationTypes`
refactor: Use Memo cache in `getAllServiceProviders`
refactor: Use Memo cache for integration lookup methods
@gustavs-gutmanis gustavs-gutmanis self-assigned this May 18, 2026
@gustavs-gutmanis gustavs-gutmanis added the refactor Refactor an existing functionality label May 18, 2026
Copy link
Copy Markdown
Contributor

@kjmartens kjmartens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See Jira issue for details

@kjmartens kjmartens self-requested a review May 21, 2026 18:10
Copy link
Copy Markdown
Contributor

@kjmartens kjmartens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found another issue... when loading the form builder, existing Conditional Rules (Rules tab) do not appear, and this error is in the Network Response:

Solspace\\Freeform\\Records\\Rules\\RuleConditionRecord has no relation named \"form\".

@kjmartens kjmartens self-requested a review May 22, 2026 17:12
@kjmartens kjmartens merged commit 2c54879 into v5 May 22, 2026
9 checks passed
@kjmartens kjmartens deleted the fix/SFT-2766-event-cleanup branch May 22, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor an existing functionality

Development

Successfully merging this pull request may close these issues.

2 participants