mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 19:40:20 +00:00
Comment
This commit is contained in:
parent
a98d215204
commit
f91faf09b3
1 changed files with 4 additions and 0 deletions
|
@ -96,6 +96,10 @@ def upper_bound(token, engine, inclusive=True):
|
|||
|
||||
|
||||
def filter_to_clause(event_filter):
|
||||
# NB: This may create SQL clauses that don't optimise well (and we don't
|
||||
# have indices on all possible clauses). E.g. it may create
|
||||
# "room_id == X AND room_id != X", which postgres doesn't optimise.
|
||||
|
||||
if not event_filter:
|
||||
return "", []
|
||||
|
||||
|
|
Loading…
Reference in a new issue