mirror of
https://github.com/element-hq/synapse
synced 2024-09-06 11:10:06 +00:00
Add paranoia limit
This commit is contained in:
parent
3e2a1297b5
commit
7ecd11accb
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class SearchStore(SQLBaseStore):
|
||||||
for clause in clauses:
|
for clause in clauses:
|
||||||
sql += " AND " + clause
|
sql += " AND " + clause
|
||||||
|
|
||||||
sql += " ORDER BY rank DESC"
|
sql += " ORDER BY rank DESC LIMIT 500"
|
||||||
|
|
||||||
results = yield self._execute(
|
results = yield self._execute(
|
||||||
"search_msgs", self.cursor_to_dict, sql, *([search_term] + args)
|
"search_msgs", self.cursor_to_dict, sql, *([search_term] + args)
|
||||||
|
|
Loading…
Reference in a new issue