0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-06 14:48:56 +01:00

Add paranoia limit

This commit is contained in:
Erik Johnston 2015-10-13 15:50:56 +01:00
parent 3e2a1297b5
commit 7ecd11accb

View file

@ -54,7 +54,7 @@ class SearchStore(SQLBaseStore):
for clause in clauses:
sql += " AND " + clause
sql += " ORDER BY rank DESC"
sql += " ORDER BY rank DESC LIMIT 500"
results = yield self._execute(
"search_msgs", self.cursor_to_dict, sql, *([search_term] + args)