-
Notifications
You must be signed in to change notification settings - Fork 611
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
Remove crates.downloads
column
#8233
Remove crates.downloads
column
#8233
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8233 +/- ##
==========================================
- Coverage 87.88% 87.60% -0.28%
==========================================
Files 270 272 +2
Lines 26092 26324 +232
==========================================
+ Hits 22931 23062 +131
- Misses 3161 3262 +101 ☔ View full report in Codecov by Sentry. |
I haven't started reviewing this PR yet. However, I noticed that index-related migration seems to be missing. If this is intentional, I think it would be helpful to include a comment in the migration script explaining the rationale behind this decision. |
☔ The latest upstream changes (presumably 0c0ced7) made this pull request unmergeable. Please resolve the merge conflicts. |
good catch, that was indeed not intentional. but I just noticed that dropping the column automatically seems to remove the associated index. I guess you were asking about the |
Yes, and we should also consider adding an index on p.s. The index |
f10d866
to
ddb6df0
Compare
d96cc6e
to
2c3c19e
Compare
7aca8d3
to
83c7a52
Compare
@eth3lbert I've added the I think this is ready to go now 🤔 |
We no longer need to filter out updates to the `downloads` columns since that column is no longer being written to and will be removed in a follow-up commit.
83c7a52
to
5613d70
Compare
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.
🎉 LGTM 👍
This PR builds on top of #8232. It switches the backend code to use the
crate_downloads
table for all downloads queries, and it subsequently drops the obsoletecrates.downloads
column.This should be deployed separately from #8232!