Ghost/ghost/core/test/utils/fixtures
Kevin Ansfield bd93bf0dea Optimised email stats aggregation query for typical column usage
ref https://linear.app/tryghost/issue/ENG-790/remove-use-of-sub-queries-in-email-analytics

- the `delivered_at` column is typically entirely/nearly entirely filled with values meaning the `IS NOT NULL` query matches a huge number of rows that MySQL has to fetch from the index to count
- using `IS NULL` switches that behaviour around as it will now match very few rows which has been shown in testing to be considerably quicker
- after switching to `IS NULL` the query returns an "undelivered" count rather than a "delivered" count, in order to keep the rest of the system behaviour the same we can calculate the delivered count by subtracting the query result from the total number of emails sent which we can fetch using a very fast primary key lookup query on the `emails` table
2024-04-03 16:27:23 +01:00
..
admin-build 🐛 Fixed missing published Admin assets when running in development 2022-08-04 10:55:35 +02:00
config Fixed rate limit test (#16258) 2023-02-13 15:16:56 +08:00
csv 🐛 Fixed invalid email getting saved for members (#16021) 2022-12-16 16:47:52 +05:30
data Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
email-service Added an email rendering test for all Koenig cards (#19059) 2023-12-12 16:05:04 -08:00
export Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
filter-param Fixed import of bson-objectid in accordance to the typings 2022-10-12 14:54:35 +07:00
images 🐛 Fixed storing original files for images (#16117) 2023-01-30 16:40:50 +01:00
import 🔒 Fixed arbitrary file read via symlinks in content import 2023-08-15 13:01:11 +02:00
media 🐛 Fixed uploads of m4a files with audio/mp4 content type 2023-03-01 08:32:21 +01:00
settings 🐛 Fixed sitemaps with no content (#15571) 2022-10-12 14:11:19 +01:00
themes Updated theme fixtures for casper and source (#18677) 2023-10-18 14:51:35 -07:00
urls Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
cache-rules.js Enabled shared caching of 404 error responses 2022-09-26 14:54:50 +08:00
context.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
data-generator.js Optimised email stats aggregation query for typical column usage 2024-04-03 16:27:23 +01:00
default-settings-browser.json Added portal default plan setting (#19238) 2023-12-06 11:39:58 +01:00
default-settings.json Added portal default plan setting (#19238) 2023-12-06 11:39:58 +01:00
fixtures.json Added missing permissions to Contributor & Editor (#19881) 2024-03-20 20:36:07 +07:00
test.hbs Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00