mirror of
https://github.com/element-hq/synapse
synced 2024-09-29 14:42:42 +00:00
Comment no longer as useful
Would be hard to craft a query to do all rooms at once since we have to query for rows between the min/max stream_ordering and filter on the client anyway. Would be easier if we could query for one thing for each room.
This commit is contained in:
parent
bb5dfc3c0d
commit
d752b8ae19
1 changed files with 0 additions and 1 deletions
|
@ -530,7 +530,6 @@ class SlidingSyncHandler:
|
||||||
# Make a copy so we don't run into an error: `Set changed size during
|
# Make a copy so we don't run into an error: `Set changed size during
|
||||||
# iteration`, when we filter out and remove items
|
# iteration`, when we filter out and remove items
|
||||||
for room_id in list(filtered_room_id_set):
|
for room_id in list(filtered_room_id_set):
|
||||||
# TODO: Is there a good method to look up all rooms at once? (N+1 query problem)
|
|
||||||
state_at_to_token = await self.storage_controllers.state.get_state_at(
|
state_at_to_token = await self.storage_controllers.state.get_state_at(
|
||||||
room_id,
|
room_id,
|
||||||
to_token,
|
to_token,
|
||||||
|
|
Loading…
Reference in a new issue