Skip to content

feat: add scheduled surface guid/scheduled date index to scheduled item table #225

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

Merged

Conversation

jpetto
Copy link
Contributor

@jpetto jpetto commented Sep 25, 2024

Goal

improve query performance when New Tab requests the day's schedule.

  • index exists to improve performance for new tab requesting the day's sched

Implementation Decisions

  • turned on performance insights on the database and watched for a week. the query from New Tab was by far the most taxing. took the query being performed into a GUI and ran EXPLAIN on it - which showed it was not using an index (instead using WHERE, which is more costly). manually added the index in this PR on dev and saw query execution speed much improved, and EXPLAIN used the index instead of WHERE.

References

JIRA ticket:

…em table

- index exists to improve performance for new tab requesting the day's sched
Copy link
Collaborator

@nina-py nina-py left a comment

Choose a reason for hiding this comment

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

🚀

@jpetto jpetto merged commit f34658b into main Sep 25, 2024
13 checks passed
@jpetto jpetto deleted the MC-1510-add-surface-and-date-index-to-scheduled-item-table branch September 25, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants