This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
slow schema migrations #10226
Labels
X-Release-Blocker
Must be resolved before making a release
Comments
These were added in #6739 |
columns with |
I guess the fix here is to make it nullable and either a) add a bg update to rewrite it with zeros, or b) have the code handle null meaning 0? |
If I remember correctly situations like this one happened in the past and option b) was generally what we've gone for. |
given that you have to do (b) anyway even if you're doing (a) (because you have to cope with the data before the bg update runs), yes, we should do (b). |
I'll quickly throw up a PR to fix this. |
I'm going to reopen this again to remind us to fix up matrix.org |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following migrations were very slow when we rolled them out to
matrix.org
recently:(yes they ran twice. We aborted synapse and they got rolled back the first time.)
The text was updated successfully, but these errors were encountered: