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:
Eric Eastwood 2024-06-10 18:27:41 -05:00
parent bb5dfc3c0d
commit d752b8ae19

View file

@ -530,7 +530,6 @@ class SlidingSyncHandler:
# Make a copy so we don't run into an error: `Set changed size during
# iteration`, when we filter out and remove items
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(
room_id,
to_token,