synapse/changelog.d
Sean Quah 9cae44f49e
Track unconverted device list outbound pokes using a position instead (#14516)
When a local device list change is added to
`device_lists_changes_in_room`, the `converted_to_destinations` flag is
set to `FALSE` and the `_handle_new_device_update_async` background
process is started. This background process looks for unconverted rows
in `device_lists_changes_in_room`, copies them to
`device_lists_outbound_pokes` and updates the flag.

To update the `converted_to_destinations` flag, the database performs a
`DELETE` and `INSERT` internally, which fragments the table. To avoid
this, track unconverted rows using a `(stream ID, room ID)` position
instead of the flag.

From now on, the `converted_to_destinations` column indicates rows that
need converting to outbound pokes, but does not indicate whether the
conversion has already taken place.

Closes #14037.

Signed-off-by: Sean Quah <seanq@matrix.org>
2022-11-22 16:46:52 +00:00
..
.gitignore
14376.misc
14393.bugfix
14400.misc Remove need for `worker_main_http_uri` setting to use /keys/upload. (#14400) 2022-11-16 22:16:25 +00:00
14403.misc Faster joins: do not wait for full state when creating events to send (#14403) 2022-11-17 17:01:14 +01:00
14404.misc Faster joins: filter out non local events when a room doesn't have its full state (#14404) 2022-11-21 16:46:14 +01:00
14412.misc
14449.misc Fix check to ignore blank lines in incoming TCP replication (#14449) 2022-11-17 16:09:56 +00:00
14452.misc Enable 'strict_equality' checking for mypy (#14452) 2022-11-17 18:34:09 +00:00
14468.misc
14476.misc Fix version that `worker_main_http_uri` is redundant from (#14476) 2022-11-17 16:11:08 +00:00
14479.misc Fixes to `federation_client` dev script (#14479) 2022-11-20 17:41:17 +00:00
14487.misc Reduce default third party invite rate limit to 216 invites per day (#14487) 2022-11-18 18:10:01 +00:00
14490.misc Fix /key/v2/server calls with URL-unsafe key IDs (#14490) 2022-11-18 19:56:42 +00:00
14491.feature Batch fetch bundled annotations (#14491) 2022-11-22 07:26:11 -05:00
14499.doc Fix broken admin API request recommendation link (#14499) 2022-11-21 12:40:25 +01:00
14500.misc Bump pygithub from 1.56 to 1.57 (#14500) 2022-11-21 10:29:42 +00:00
14501.misc Bump sentry-sdk from 1.10.1 to 1.11.0 (#14501) 2022-11-21 10:28:57 +00:00
14502.misc Bump types-pillow from 9.2.2.1 to 9.3.0.1 (#14502) 2022-11-21 10:29:24 +00:00
14503.misc Bump towncrier from 21.9.0 to 22.8.0 (#14503) 2022-11-21 10:29:54 +00:00
14504.misc Bump phonenumbers from 8.12.56 to 8.13.0 (#14504) 2022-11-21 10:30:05 +00:00
14505.misc Bump serde_json from 1.0.87 to 1.0.88 (#14505) 2022-11-21 10:30:18 +00:00
14508.feature Batch fetch bundled references (#14508) 2022-11-22 09:41:09 -05:00
14510.feature Parallelize calls to fetch bundled aggregations. (#14510) 2022-11-22 09:47:32 -05:00
14516.misc Track unconverted device list outbound pokes using a position instead (#14516) 2022-11-22 16:46:52 +00:00