mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Merge pull request #543 from matrix-org/erikj/sync
Cache get_room_changes_for_user
This commit is contained in:
commit
2d3837bec7
3 changed files with 15 additions and 0 deletions
|
@ -252,6 +252,13 @@ class StreamStore(SQLBaseStore):
|
|||
if from_key == to_key:
|
||||
return defer.succeed([])
|
||||
|
||||
if from_id:
|
||||
has_changed = self._membership_stream_cache.has_entity_changed(
|
||||
user_id, int(from_id)
|
||||
)
|
||||
if not has_changed:
|
||||
return defer.succeed([])
|
||||
|
||||
def f(txn):
|
||||
if from_id is not None:
|
||||
sql = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue