Ghost/core/server/services/bulk-email
Kevin Ansfield 2efcf94645
Improved performance of sending newsletter emails (#12091)
no-issue

- switch from `membersService.api.members.list` to using bookshelf `Member.findPage()` with the `{paid: true}` filter to avoid per-member queries (N+1) to decorate members with subscriptions and a heavy post-fetch filter via `contentGating`
- add concurrency to the Mailgun API requests in `bulk-email` service to reduce overall time submitting API requests
- add debug statements with timing output for easier measurements
2020-08-06 15:19:39 +02:00
..
index.js Improved performance of sending newsletter emails (#12091) 2020-08-06 15:19:39 +02:00
mailgun.js Fixed mailgun config not allowing custom hosts with ports 2020-07-30 17:28:51 +01:00