Limit autocomplete to 25 results
I'm not totally sure why we didn't do this years ago, but this fixes performances problems in the new React tags box, and should improve autocomplete performance generally in large libraries.
This commit is contained in:
parent
381c5fc8d8
commit
53ff8eecd2
1 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,8 @@ ZoteroAutoComplete.prototype.startSearch = Zotero.Promise.coroutine(function* (s
|
|||
sql += "ORDER BY value";
|
||||
}
|
||||
|
||||
sql += " LIMIT 25";
|
||||
|
||||
var onRow = null;
|
||||
// If there's a result callback (e.g., for sorting), don't use a row handler
|
||||
if (!resultsCallback) {
|
||||
|
|
Loading…
Reference in a new issue