From a998a361b81d6237065895667fe535728a6fa985 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 25 Nov 2022 17:29:53 +0000 Subject: [PATCH] Prefix TODOs with faster joins --- synapse/replication/tcp/streams/partial_state.py | 2 +- synapse/storage/databases/main/room.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/replication/tcp/streams/partial_state.py b/synapse/replication/tcp/streams/partial_state.py index b117d189ff06..46868b0f9c39 100644 --- a/synapse/replication/tcp/streams/partial_state.py +++ b/synapse/replication/tcp/streams/partial_state.py @@ -42,7 +42,7 @@ def __init__(self, hs: "HomeServer"): store = hs.get_datastores().main super().__init__( hs.get_instance_name(), - # TODO(multiple writers): we need to account for instance names + # TODO(faster joins, multiple writers): we need to account for instance names current_token_without_instance(store.get_un_partial_stated_rooms_token), store.get_un_partial_stated_rooms_from_stream, ) diff --git a/synapse/storage/databases/main/room.py b/synapse/storage/databases/main/room.py index 727bc4ac16b3..a7ceda30c7de 100644 --- a/synapse/storage/databases/main/room.py +++ b/synapse/storage/databases/main/room.py @@ -132,7 +132,7 @@ def __init__( ("un_partial_stated_room_stream", "instance_name", "stream_id") ], sequence_name="un_partial_stated_room_stream_sequence", - # TODO(multiple writers) Support multiple writers. + # TODO(faster joins, multiple writers) Support multiple writers. writers=["master"], ) else: