You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Remove redundant event_edges.room_id and event_edges.is_state columns #12892
At what point can we delete event_edges.is_state from our SQL queries? It seems like we have to support it forever given it's a background update to drop the rows.
At what point can we delete event_edges.is_state from our SQL queries? It seems like we have to support it forever given it's a background update to drop the rows.
I haven't entirely figured this out yet. I think what we need to do is add a new synchronous db migration which checks if the bg update has completed, and if not, does the update synchronously. Once that has happened, it is safe to remove the conditions from the queries, and finally to drop the columns altogether.
But we shouldn't do that until it is likely that most people have completed the bg update.
Activity
MadLittleMods commentedon Sep 22, 2022
At what point can we delete
event_edges.is_statefrom our SQL queries? It seems like we have to support it forever given it's a background update to drop the rows.I'm coming from this discussion for context: #13635 (comment)
richvdh commentedon Sep 23, 2022
I haven't entirely figured this out yet. I think what we need to do is add a new synchronous db migration which checks if the bg update has completed, and if not, does the update synchronously. Once that has happened, it is safe to remove the conditions from the queries, and finally to drop the columns altogether.
But we shouldn't do that until it is likely that most people have completed the bg update.
richvdh commentedon Sep 23, 2022
(That may well be true already. I haven't thought about this for a few months.)