mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-15 20:20:18 +00:00
Comments
This commit is contained in:
parent
29bd79728d
commit
89a6ff8224
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ def get_rooms(from_token: SlidingSyncStreamToken) -> None:
|
||||||
event_stream_change_cache_valid = ...
|
event_stream_change_cache_valid = ...
|
||||||
|
|
||||||
if from_token and event_stream_change_cache_valid:
|
if from_token and event_stream_change_cache_valid:
|
||||||
# Get all the rooms again, this call can be cached.
|
# Get all the rooms again, this call can be cached. Since we know we can
|
||||||
|
# use the stream change we don't have to hit the DB again to get the
|
||||||
|
# changed rooms.
|
||||||
sql = """
|
sql = """
|
||||||
SELECT s.room_id, s.membership, s.event_stream_ordering
|
SELECT s.room_id, s.membership, s.event_stream_ordering
|
||||||
FROM sliding_sync_membership_snapshots AS s
|
FROM sliding_sync_membership_snapshots AS s
|
||||||
|
|
Loading…
Add table
Reference in a new issue