Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
Attempting to batch update mergevars for lists with over 30k subscribers fails due to PHP running out of memory. This will very by server configuration, but the current process is still not scalable as it loads all list subscribers and all associated entities into memory before sending any updates to MailChimp.
Proposed resolution
Refactor the batch update process to load list subscribers and associated entities in batches, updating MailChimp immediately after each batch.
Comment | File | Size | Author |
---|---|---|---|
#2 | mailchimp-batch-mergevar-efficiency-2877477-2.patch | 9.02 KB | ruscoe |
Comments
Comment #2
ruscoe CreditAttribution: ruscoe at ThinkShout for Mailchimp commentedComment #3
mshaver CreditAttribution: mshaver commentedThis was tested with a large batch of mergevars and worked well. if anyone else can test this, this would be a good item to get into the next release.
Comment #5
ruscoe CreditAttribution: ruscoe at ThinkShout for Mailchimp commentedWe've had success with this on a large site recently. I think it's safe to commit.