Ghost/ghost/core/test/unit/server
Fabien 'egg' O'Carroll 616247b6d5
Indexed over members_newsletters(newsletter_id, member_id) (#19156)
refs https://github.com/TryGhost/Product/issues/4181

We were seeing slow queries when joining on this table, and the index
speeds them up. The down migration is tricky because when we add the
index MySQL can optimise away some `KEY` indexes on the `newsletter_id`
column. When we then go to remove the newly created index, there is no
index for the FK! 

We also remove the use of `force index` as 1. the index we're forcing is
optimised away and 2. we don't need it anymore!


Co-authored-by: Daniel Lockyer <hi@daniellockyer.com>
2023-11-28 12:20:14 +00:00
..
adapters Removed Bluebird from tests 2023-06-23 10:03:03 +02:00
data Indexed over members_newsletters(newsletter_id, member_id) (#19156) 2023-11-28 12:20:14 +00:00
lib Upgraded to latest version of @tryghost/request 2023-09-26 12:45:14 +01:00
models Updated to use assert/strict everywhere (#17047) 2023-06-21 09:56:59 +01:00
services Added email address alignment protections (#19094) 2023-11-23 10:25:30 +01:00
web Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
notify.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00