Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed email_recipients indexes to match query usage #19918

Merged

Commits on Mar 25, 2024

  1. Fixed email_recipients indexes to match query usage

    closes https://linear.app/tryghost/issue/ENG-791/migration-to-fix-email-recipients-indexes
    
    Our indexes over single columns (`delivered_at`, `opened_at`, `failed_at`) were ineffective because the only time we query those is alongside `email_id` meaning we were frequently performing full table scans on very large tables during our email analytics jobs.
    
    - added migration to add new indexes covering `email_id` and the respective columns
    - added migration to drop the old indexes that weren't being used in any query plans
    kevinansfield committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    c580b50 View commit details
    Browse the repository at this point in the history