Clarify why easier

See https://github.com/matrix-org/synapse/pull/13771#discussion_r968250300
This commit is contained in:
Eric Eastwood 2022-09-12 18:22:14 -05:00
parent 913eab1b90
commit 8871e3d635

View file

@ -210,7 +210,8 @@ scoped, we can reduce the possibility of a hash collision. When scoping
(`PRIMARY KEY (room_id, event_id)`) and lookups should be done through the pair
`(room_id, event_id)`. Another benefit of scoping `event_ids` to the room is
that it makes it very easy to find and clean up everything in a room when it
needs to be purged.
needs to be purged (no need to sub-`select` query or join from the `events`
table).
`event_id` global uniqueness has had a lot debate in places like
https://github.com/matrix-org/matrix-spec-proposals/issues/2779 and