Comment on the LIMIT 500

pull/307/head
Erik Johnston 2015-10-16 11:24:02 +01:00
parent 22a8c91448
commit 73260ad01f
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ class SearchStore(SQLBaseStore):
for clause in clauses:
sql += " AND " + clause
# We add an arbitrary limit here to ensure we don't try to pull the
# entire table from the database.
sql += " ORDER BY rank DESC LIMIT 500"
results = yield self._execute(