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

SearchKit - Add contacts to mailing group in batches #24254

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Aug 14, 2022

Overview

Fixes potential problems when creating large CiviMail mailing groups via SearchKit (for the "Email - schedule/send via CiviMail" action).

Before

No batching.

After

Uses the batch runner for adding contacts to the mailing group instead of doing it all at once via chaining.

Technical Details

This prevents timeouts when creating very large mailings > 500 contacts.

Comments

This may fix the problems noted in #24186

For the "Email - schedule/send via CiviMail" action, this switches to
using the batch runner for adding contacts to the mailing group instead of
doing it all at once via chaining.
This prevents timeouts when creating very large mailings > 500 contacts.
@civibot
Copy link

civibot bot commented Aug 14, 2022

(Standard links)

@civibot civibot bot added the master label Aug 14, 2022
@colemanw
Copy link
Member Author

@andyburnsco this may solve the problem you had when testing #24186

@andyburnsco
Copy link
Contributor

andyburnsco commented Aug 16, 2022

As a administrator, it took 3min to create a hidden group of 933 recipients out of 1091 contacts from Search Kit. It seems there is underlying performance issues. There are typical use cases of several thousands of contacts and up to 160K contacts in one org's case.

Replicating the same search results in advanced search, it took 1min and 10s as a benchmark.

The test is from clicking the email action to the full CiviMail page load.

The improvement definitely passes, by keeping the user informed that it is working and building the "list". Probably a "work towards" kind of enhancement.

@colemanw colemanw merged commit 38e2c42 into civicrm:master Aug 17, 2022
@colemanw colemanw deleted the mailingTask branch August 17, 2022 01:49
@colemanw
Copy link
Member Author

Thanks for testing @andyburnsco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants