Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Stop populateing event_edges.room_id and is_state
Browse files Browse the repository at this point in the history
We can just rely on the defaults.
  • Loading branch information
richvdh committed May 27, 2022
1 parent 4bc172f commit 9c70e88
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions synapse/storage/databases/main/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2296,11 +2296,9 @@ def _handle_mult_prev_events(
self.db_pool.simple_insert_many_txn(
txn,
table="event_edges",
keys=("event_id", "prev_event_id", "room_id", "is_state"),
keys=("event_id", "prev_event_id"),
values=[
(ev.event_id, e_id, ev.room_id, False)
for ev in events
for e_id in ev.prev_event_ids()
(ev.event_id, e_id) for ev in events for e_id in ev.prev_event_ids()
],
)

Expand Down

0 comments on commit 9c70e88

Please sign in to comment.