mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Remove some redundant joins on event_edges.room_id
We've long passed the point where it's possible to have the same event_id in different tables, so these join conditions are redundant: we can just join on event_id. event_edges is of non-trivial size, and the room_id column is wasteful, so let's stop reading from it. In future, we can stop writing to it, and then drop it.
This commit is contained in:
parent
1b4d73fa52
commit
bd4b25f4d0
2 changed files with 6 additions and 8 deletions
|
@ -520,7 +520,6 @@ class EventsStore(EventsWorkerStore):
|
|||
iterable=list(new_latest_event_ids),
|
||||
retcols=["prev_event_id"],
|
||||
keyvalues={
|
||||
"room_id": room_id,
|
||||
"is_state": False,
|
||||
},
|
||||
desc="_calculate_new_extremeties",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue