-
-
Notifications
You must be signed in to change notification settings - Fork 10k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed use of subqueries in email analytics queries
closes https://linear.app/tryghost/issue/ENG-790/remove-use-of-sub-queries-in-email-analytics Avoiding sub queries means we don't have a process tied up for longer than necessary and we can more easily see if one of the queries is non-performant. - extracted the count queries into separate queries and used the retrieved values in the final update query - removed a query by moving the email open rate calculation into JS as we've already fetched the necessary data before that point
- Loading branch information
1 parent
83d4484
commit 4f5a7b4
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters