-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Make thread_id required in event_push tables #14225
Comments
I confirmed the necessary operations will now be index scans. So I think we can just do this now? This was back in Synapse v1.70.0, I guess we need to consider the schema ramifications of this first though. |
BackgroundCurrently there's a nullable There are a few related background processes related to this which were previously added:
If the End goal
ProposalSince we need to assume the Note that currently
I am proposing that we:
This might be a bad time if We let at least two versions of Synapse pass and then we:
TODO: Why do we need to wait to drop the code if we've dropped the background update?!?!?! |
Thinking of this more, I think the assurances we want to make are:
|
So thinking about this more -- I think we must set the |
The fix for this got reverted, see #15359. |
Update
thread_id
column to be non-null:UPDATE
null thread IDs to be'main'
after the previous background update and addNOT NULL
constraint.thread_id IS NULL
indexes (since they're no longer needed).See #14222 for the code which was backed out, most of it can likely be re-used.
This will re-apply part of #13776.
The text was updated successfully, but these errors were encountered: