mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Don't hit DB for noop replications queries
This commit is contained in:
parent
e0fda29f94
commit
1a815fb04f
5 changed files with 15 additions and 0 deletions
|
@ -138,6 +138,9 @@ class AccountDataStore(SQLBaseStore):
|
|||
A deferred pair of lists of tuples of stream_id int, user_id string,
|
||||
room_id string, type string, and content string.
|
||||
"""
|
||||
if last_room_id == current_id and last_global_id == current_id:
|
||||
return defer.succeed(([], []))
|
||||
|
||||
def get_updated_account_data_txn(txn):
|
||||
sql = (
|
||||
"SELECT stream_id, user_id, account_data_type, content"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue