Optimise get_rooms_for_user (drop with_stream_ordering) (#13787)

This commit is contained in:
Nick Mills-Barrett 2022-09-29 14:55:12 +01:00 committed by GitHub
parent be76cd8200
commit a466164647
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 66 additions and 75 deletions

View file

@ -205,6 +205,7 @@ class CacheInvalidationWorkerStore(SQLBaseStore):
self.get_rooms_for_user_with_stream_ordering.invalidate(
(data.state_key,)
)
self.get_rooms_for_user.invalidate((data.state_key,))
else:
raise Exception("Unknown events stream row type %s" % (row.type,))