Ghost/core/server/data/migrations/versions/3.40
Kevin Ansfield b1aafd715d
Added members.email_{count,opened_count} column migrations (#12470)
refs https://github.com/TryGhost/Ghost/issues/12461

- adds `members.email_count` and `members.email_opened_count` columns to contain cached counts for faster queries when outputting member data via API
- adds migration to populate cached counts with existing data
  - tested locally on ~50k members which took ~4sec on mysql
- updates members output serializer to include the new fields in API output
2020-12-09 12:21:56 +00:00
..
01-add-members-email-open-rate-column.js Added migration for members.email_open_rate column (#12457) 2020-12-08 12:20:17 +00:00
02-add members-email-aggregation-columns.js Added members.email_{count,opened_count} column migrations (#12470) 2020-12-09 12:21:56 +00:00
03-populate-members-email-counts.js Added members.email_{count,opened_count} column migrations (#12470) 2020-12-09 12:21:56 +00:00