From 18b01f2865651f3439c1a21df9ed8cca585d4463 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 18 Nov 2024 10:17:41 +0000 Subject: [PATCH 1/2] Fix incorrect comment in new schema delta Added in #17912, was a bad copy and paste. --- .../schema/main/delta/88/04_current_state_delta_index.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql b/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql index ad54302a8f9..0ee78df1a0a 100644 --- a/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql +++ b/synapse/storage/schema/main/delta/88/04_current_state_delta_index.sql @@ -12,7 +12,7 @@ -- . --- Add an index on (user_id, device_id, algorithm, ts_added_ms) on e2e_one_time_keys_json, so that OTKs can --- efficiently be issued in the same order they were uploaded. +-- Add an index on `current_state_delta_stream(room_id, stream_id)` to allow +-- efficient per-room lookups. INSERT INTO background_updates (ordering, update_name, progress_json) VALUES (8804, 'current_state_delta_stream_room_index', '{}'); From 3dca2aa78fed735d3d022d6a7e6573b3da2e9fe2 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Mon, 18 Nov 2024 10:18:32 +0000 Subject: [PATCH 2/2] Newsfile --- changelog.d/17936.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/17936.misc diff --git a/changelog.d/17936.misc b/changelog.d/17936.misc new file mode 100644 index 00000000000..91d976fbd9c --- /dev/null +++ b/changelog.d/17936.misc @@ -0,0 +1 @@ +Fix incorrect comment in new schema delta.