diff options
author | Erik Johnston <erik@matrix.org> | 2018-07-10 17:21:17 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-07-10 17:22:42 +0100 |
commit | 05f5dabc10f9d7a4403c9571c12371b2b6dd93f7 (patch) | |
tree | 09e09e6ae992cee67f65c7f4d288c72f3dc7be01 /synapse/replication/slave/storage | |
parent | Attempt to include db threads in cpu usage stats (#3496) (diff) | |
download | synapse-05f5dabc10f9d7a4403c9571c12371b2b6dd93f7.tar.xz |
Use stream cache in get_linearized_receipts_for_room
This avoids us from uncessarily hitting the database when there has been no change for the room
Diffstat (limited to 'synapse/replication/slave/storage')
-rw-r--r-- | synapse/replication/slave/storage/receipts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/receipts.py b/synapse/replication/slave/storage/receipts.py index 7ab12b850f..ed12342f40 100644 --- a/synapse/replication/slave/storage/receipts.py +++ b/synapse/replication/slave/storage/receipts.py @@ -49,7 +49,7 @@ class SlavedReceiptsStore(ReceiptsWorkerStore, BaseSlavedStore): def invalidate_caches_for_receipt(self, room_id, receipt_type, user_id): self.get_receipts_for_user.invalidate((user_id, receipt_type)) - self.get_linearized_receipts_for_room.invalidate_many((room_id,)) + self._get_linearized_receipts_for_room.invalidate_many((room_id,)) self.get_last_receipt_event_id_for_user.invalidate( (user_id, room_id, receipt_type) ) |