Skip to content

Use ActiveRecord over Arrays for email lists#2525

Merged
jonodrew merged 1 commit intomasterfrom
reduce-memory-load-for-member-emails
Mar 16, 2026
Merged

Use ActiveRecord over Arrays for email lists#2525
jonodrew merged 1 commit intomasterfrom
reduce-memory-load-for-member-emails

Conversation

@jonodrew
Copy link
Contributor

Signed-off-by: jonathan.kerr 3410350+jonodrew@users.noreply.github.com

#member_emails previously processed an enormous array of objects in-memory. I've altered both that method and the underlying model to work solely in ActiveRecord, thereby reducing the memory strain.

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>

#member_emails previously processed an enormous array of objects in-memory. I've altered both that method and the underlying model to work solely in ActiveRecord, thereby reducing the memory strain.
Copy link
Contributor

@KimberleyCook KimberleyCook left a comment

Choose a reason for hiding this comment

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

🤞 🎉

@jonodrew jonodrew merged commit 8136ebd into master Mar 16, 2026
16 checks passed
@jonodrew jonodrew deleted the reduce-memory-load-for-member-emails branch March 16, 2026 16:10
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.

2 participants