mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Add stream change cache
This commit is contained in:
parent
5d79d728f5
commit
304880d185
4 changed files with 34 additions and 1 deletions
|
@ -204,7 +204,9 @@ class UserDirectoryStore(SQLBaseStore):
|
|||
)
|
||||
|
||||
def get_current_state_deltas(self, prev_stream_id):
|
||||
# TODO: Add stream change cache
|
||||
if not self._curr_state_delta_stream_cache.has_any_entity_changed(prev_stream_id):
|
||||
return []
|
||||
|
||||
# TODO: Add limit
|
||||
sql = """
|
||||
SELECT stream_id, room_id, type, state_key, event_id, prev_event_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue