Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Up the cache size for 'get_joined_hosts_for_room' and 'get_users_in_r…
Browse files Browse the repository at this point in the history
…oom'
  • Loading branch information
erikjohnston committed Aug 5, 2015
1 parent a89559d commit 1e62a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_room_member(self, user_id, room_id):
lambda events: events[0] if events else None
)

@cached()
@cached(max_entries=5000)
def get_users_in_room(self, room_id):
def f(txn):

Expand Down Expand Up @@ -154,7 +154,7 @@ def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
RoomsForUser(**r) for r in self.cursor_to_dict(txn)
]

@cached()
@cached(max_entries=5000)
def get_joined_hosts_for_room(self, room_id):
return self.runInteraction(
"get_joined_hosts_for_room",
Expand Down

0 comments on commit 1e62a3d

Please sign in to comment.