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

Add index on comment.user_id #992

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

psrok1
Copy link
Member

@psrok1 psrok1 commented Oct 18, 2024

Your checklist for this pull request

  • I've read the contributing guideline.
  • I've tested my changes by building and running the project, and testing changed functionality (if applicable)

What is the current behaviour?

Comment.user_id is not indexed although this column in queried in various scenarios... including user removal.

What is the new behaviour?

Added index on comment.user_id to optimize these queries

@psrok1 psrok1 merged commit 4fc30b3 into master Oct 18, 2024
12 checks passed
@psrok1 psrok1 deleted the fix/add-index-comment-user-id branch October 18, 2024 11:02
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.

1 participant