Problem/Motivation

When attempting to install on a site with over 10k users Im getting server timeouts and all the email entities are not created for each user.

Proposed resolution

Use a batch process in hook_install() when looping through all the user accounts.

I have a MR coming.

CommentFileSizeAuthor
#4 multiple-email--3483919--MR2.patch3.87 KBloze
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

loze created an issue. See original summary.

loze’s picture

Issue summary: View changes

loze’s picture

Status: Active » Needs review
StatusFileSize
new3.87 KB

MR!2 adds a batch process to hook_install() and allows me to install the module.

Here is a patch of the MR for composer.

avpaderno’s picture

Version: 2.x-dev » 3.x-dev
Status: Needs review » Needs work
Issue tags: +Needs merge request

Yes, creating the primary email entities for all the user accounts is surely going to cause timeout errors.

We need a merge request, for the 3.x branch, which will then back-ported to the 2.x branch.