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

Search/Migration:removed 2017-2021 semesters to improve search speeds #978

Merged

Conversation

jyang0403
Copy link

Description

Removing all older semesters (2017-2021) to improve course search speeds using a new data migration.

Change Log

Created a new migration file (0042) in timetables/migrations.

@JiaqiWang18
Copy link
Member

@jyang0403 So far looks good, you can request a review from James and I when you are ready to merge

@JiaqiWang18 JiaqiWang18 self-requested a review March 20, 2023 03:45
Copy link
Member

@JiaqiWang18 JiaqiWang18 left a comment

Choose a reason for hiding this comment

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

The migration looks good! I am just wondering about the load on the database of deleting multiple semesters at once since there are multiple levels of cascade relationships here. Deleting the Semester will also delete the Sections which then will delete the Offerings. @JJamesWWang what is your take on this?

@JJamesWWang
Copy link
Member

I think it'll be fine; it's roughly O(n)

@JJamesWWang
Copy link
Member

You may want to remove the old semesters from the parser too by the way.

@jyang0403 jyang0403 merged commit 5a1175f into jhuopensource:develop Mar 21, 2023
JJamesWWang added a commit to JJamesWWang/semesterly that referenced this pull request Mar 23, 2023
…emove_old_semesters"

This reverts commit 5a1175f, reversing
changes made to ffa3a2c.
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.

3 participants