mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -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
|
@ -421,6 +421,9 @@ class PushRuleStore(SQLBaseStore):
|
|||
|
||||
def get_all_push_rule_updates(self, last_id, current_id, limit):
|
||||
"""Get all the push rules changes that have happend on the server"""
|
||||
if last_id == current_id:
|
||||
return defer.succeed([])
|
||||
|
||||
def get_all_push_rule_updates_txn(txn):
|
||||
sql = (
|
||||
"SELECT stream_id, event_stream_ordering, user_id, rule_id,"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue