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

Remove some redundant joins on event_edges.room_id #3613

Merged
merged 2 commits into from
Jul 26, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 26, 2018

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.

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.
@richvdh richvdh requested a review from a team July 26, 2018 12:23
@richvdh richvdh merged commit 9e68b1b into develop Jul 26, 2018
@richvdh richvdh deleted the rav/stop_using_event_edges_room_id branch July 26, 2018 21:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants