-
Notifications
You must be signed in to change notification settings - Fork 987
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
Major Database Refactoring #4958
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@ewdurbin Are you auto-generating the migration from the models? Looks to me like there's a bit of disagreement between the two. |
@di not completely no. there is currently some disagreement because I wanted to get what I had up for review before departing for a bit! fixing tests and syncing now! |
I think that resolves most of the schema and model concerns. Now it's a matter of cleaning up the newly goof'd references. I plan to pick this up tomorrow morning if no-one runs with it. Contributors: Feel free to pick branch from this and add commits in a separate PR! Just note that you've done so and reference this pull request. I'll happily close and pick up from your work in the morning :) |
Could use some help pushing this along. There's something I don't seem to understand in the relationship between |
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.
It looks like some of the other tracebacks are due to project_id
being null
when a flush is happening. You might have to adjust some queries to handle this change.
I've fixed a few more of the tests. I think the remaining tests exist because we still have
|
Oh, and (1) and (2) will need something to make sure that if we update (3) is maybe the right answer, but we'd have to see how it performed, doing those joins might increase the query duration by a non-trivial amount. I have no idea. |
3abfe77
to
df3e04b
Compare
Error here is that this PR needs updated to deal with https://github.com/pypa/warehouse/blob/b5be03eb54f2f48ef9d26a2aaf9a9a687aa32e91/warehouse/migrations/versions/eeb23d9b4d00_add_squats_table.py. |
I'm hijacking this PR to include a number of other changes that I think we should do, but I've avoided doing due to downtime they would likely require. Since this PR is going to require downtime already, merging all of these changes into a singe PR allows us to just take the downtime once. |
Ok, so the effect of this PR:
Replacing all uses of things like I expect this set of migrations will take a bit to run. On the dev db, my |
Given the complexity and potential for a long migration, I'd like to schedule downtime to complete this rollout. This Saturday morning Eastern time is good for me, but I'd also like it if I could have some additional support from either @dstufft or @di during this time. Does Saturday 2018-11-10T10:00:00-05:00 work for either/both of you? I'd estimate we schedule two hours of downtime for uploads, but most likely only use about half of that. |
Maybe, there's something on my calendar, but I'm not sure what it is or if I have to go to it. Will have to check and get back. |
I'll be at PyCon CA that weekend -- Sunday would be better for me. |
Sunday is toast for me. Committed all afternoon. @dstufft if something a bit later works for you Saturday I'm good all afternoon (12PM-5PM Eastern) |
Deployment to prod disabled temporarily. Merging to send to test.pypi.org. |
working on resolving #4772