mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 03:39:27 -05:00
Up the cache size for 'get_joined_hosts_for_room' and 'get_users_in_room'
This commit is contained in:
parent
a89559d797
commit
1e62a3d3a9
@ -78,7 +78,7 @@ class RoomMemberStore(SQLBaseStore):
|
||||
lambda events: events[0] if events else None
|
||||
)
|
||||
|
||||
@cached()
|
||||
@cached(max_entries=5000)
|
||||
def get_users_in_room(self, room_id):
|
||||
def f(txn):
|
||||
|
||||
@ -154,7 +154,7 @@ class RoomMemberStore(SQLBaseStore):
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user