mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 10:44:11 -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
|
@ -68,6 +68,9 @@ class TagsStore(SQLBaseStore):
|
|||
A deferred list of tuples of stream_id int, user_id string,
|
||||
room_id string, tag string and content string.
|
||||
"""
|
||||
if last_id == current_id:
|
||||
defer.returnValue([])
|
||||
|
||||
def get_all_updated_tags_txn(txn):
|
||||
sql = (
|
||||
"SELECT stream_id, user_id, room_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue