synapse-old/synapse/storage/databases
Nick Mills-Barrett 5fdc12f482
Add `event_stream_ordering` column to membership state tables (#14979)
This adds an `event_stream_ordering` column to `current_state_events`,
`local_current_membership` and `room_memberships`. Each of these tables
is regularly joined with the `events` table to get the stream ordering
and denormalising this into each table will yield significant query
performance improvements once used. Includes a background job to
populate these values from the `events` table.

Same idea as https://github.com/matrix-org/synapse/pull/13703.

Signed off by Nick @ Beeper (@fizzadar).
2023-02-07 00:10:54 +00:00
..
main Add `event_stream_ordering` column to membership state tables (#14979) 2023-02-07 00:10:54 +00:00
state Move `StateFilter` to `synapse.types` (#14668) 2022-12-12 16:19:30 +00:00
__init__.py Ensure that `get_datastores().main` is typed (#12070) 2022-02-25 10:20:40 +00:00