mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 10:39:23 -05:00
Use explicit join
This commit is contained in:
parent
8f99cd5996
commit
b0a1036d93
@ -127,9 +127,9 @@ class EventPushActionsStore(SQLBaseStore):
|
||||
" FROM events"
|
||||
" NATURAL JOIN receipts_linearized WHERE receipt_type = 'm.read'"
|
||||
" GROUP BY room_id, user_id"
|
||||
") AS rl "
|
||||
"NATURAL JOIN events e "
|
||||
"WHERE"
|
||||
") AS rl"
|
||||
" INNER JOIN events AS e USING (room_id, event_id)"
|
||||
" WHERE"
|
||||
" ep.room_id = rl.room_id"
|
||||
" AND ("
|
||||
" ep.topological_ordering > rl.topological_ordering"
|
||||
|
Loading…
Reference in New Issue
Block a user