Improve performance of getting unread counts in rooms (#13119)

This commit is contained in:
Erik Johnston 2022-06-29 11:32:38 +01:00 committed by GitHub
parent cdc0259449
commit 92a0c18ef0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 4 deletions

View file

@ -86,6 +86,8 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
event.internal_metadata.is_outlier.return_value = False
event.depth = stream
self.store._events_stream_cache.entity_has_changed(room_id, stream)
self.get_success(
self.store.db_pool.simple_insert(
table="events",