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

Added migration to create missing posts.user_id index #1169

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

mway-niels
Copy link
Contributor

Issue:

As the number of users and/or posts grows, search performance goes down significantly (query duration >= 30s in our case).

Indexing the user_id column in the posts table fixes the issue.

@mattwoberts
Copy link
Contributor

Cheers @mway-niels ! Looks like a sensible index to have. I'll bring this in soon.

@mattwoberts mattwoberts merged commit 545fd07 into getfider:main Jul 7, 2024
8 checks passed
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