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:
Dan Stillman 2019-12-03 16:00:04 -07:00
parent 381c5fc8d8
commit 53ff8eecd2

View file

@ -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) {