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

feat: add migration files for index #2282

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

KishenKumarrrrr
Copy link
Contributor

@KishenKumarrrrr KishenKumarrrrr commented Nov 1, 2024

Problem

This PR is part of my solution for the aggregation problem. The current explain plan hints at some inefficiencies where we are filtering through many rows in order to derive the result we need. My hypothesis is that this would perform significantly better if we add a proper index to allow efficient filtering of status and error_code. In this PR, I add the relevant index for this.

Screenshot 2024-11-01 at 10 00 50 AM

Deployment Checklist

  • Run migration on staging
  • Run migration on production

@KishenKumarrrrr KishenKumarrrrr self-assigned this Nov 1, 2024
Copy link

@jwnicholas99 jwnicholas99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KishenKumarrrrr KishenKumarrrrr merged commit 9af25fe into master Nov 4, 2024
7 checks passed
@KishenKumarrrrr KishenKumarrrrr deleted the feat/add-email-messages-index-for-counting branch November 4, 2024 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants