Skip to content
Snippets Groups Projects
Commit 1e62a3d3 authored by Erik Johnston's avatar Erik Johnston
Browse files

Up the cache size for 'get_joined_hosts_for_room' and 'get_users_in_room'

parent a89559d7
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ class RoomMemberStore(SQLBaseStore): ...@@ -78,7 +78,7 @@ class RoomMemberStore(SQLBaseStore):
lambda events: events[0] if events else None lambda events: events[0] if events else None
) )
@cached() @cached(max_entries=5000)
def get_users_in_room(self, room_id): def get_users_in_room(self, room_id):
def f(txn): def f(txn):
...@@ -154,7 +154,7 @@ class RoomMemberStore(SQLBaseStore): ...@@ -154,7 +154,7 @@ class RoomMemberStore(SQLBaseStore):
RoomsForUser(**r) for r in self.cursor_to_dict(txn) RoomsForUser(**r) for r in self.cursor_to_dict(txn)
] ]
@cached() @cached(max_entries=5000)
def get_joined_hosts_for_room(self, room_id): def get_joined_hosts_for_room(self, room_id):
return self.runInteraction( return self.runInteraction(
"get_joined_hosts_for_room", "get_joined_hosts_for_room",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment