"README.md" did not exist on "b988b07bb0d07d5d5f1323cc4d3282f5876b62f6"
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).
Showing
- changelog.d/14979.misc 1 addition, 0 deletionschangelog.d/14979.misc
- synapse/storage/databases/main/events.py 17 additions, 6 deletionssynapse/storage/databases/main/events.py
- synapse/storage/databases/main/events_bg_updates.py 103 additions, 1 deletionsynapse/storage/databases/main/events_bg_updates.py
- synapse/storage/databases/main/events_worker.py 4 additions, 4 deletionssynapse/storage/databases/main/events_worker.py
- synapse/storage/schema/main/delta/73/26membership_tables_event_stream_ordering.sql 21 additions, 0 deletions...in/delta/73/26membership_tables_event_stream_ordering.sql
Loading