-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: add extra indexes to calls and unread events tables [WPB-11808] #3084
Conversation
Quality Gate passedIssues Measures |
Test Results2 820 tests - 435 2 812 ✅ - 337 4m 31s ⏱️ +22s Results for commit 63e704e. ± Comparison against base commit 1f3c946. This pull request removes 3255 and adds 2820 tests. Note that renamed tests count towards both.
This pull request removes 106 skipped tests and adds 8 skipped tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Bencher Report
Click to view all benchmark results
|
Datadog ReportBranch report: ✅ 0 Failed, 1 Passed, 0 Skipped, 0s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion about removing a redundant index
@@ -15,6 +15,7 @@ CREATE TABLE Call ( | |||
CREATE INDEX call_date_index ON Call(created_at); | |||
CREATE INDEX call_conversation_index ON Call(conversation_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the conversation ID index is redundant since the PK starts with conversation_id
I already added these indexes in the PR that provides fixes to make paginated queries faster: #3102 so I'm closing this one |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
We are executing queries on UnreadEvents and Calls that result in full table scans.
Causes
Missing indexes.
Solutions
Add indexes :)
Dependencies
Needs releases with:
I've created
89.sqm
, as the PR #3083 creates88.sqm
Testing
N/A
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.