Bug 682676 - Urlbar performance regression with SQLite 3.7.7.1.

r=sdwilsh
This commit is contained in:
Marco Bonardo 2011-09-01 12:01:58 +02:00
Родитель 4ed14b493d
Коммит 5d6de02b71
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -285,7 +285,10 @@ function nsPlacesAutoComplete()
});
XPCOMUtils.defineLazyGetter(this, "_historyQuery", function() {
let replacementText = "AND h.visit_count > 0";
// Enforce ignoring the visit_count index, since the frecency one is much
// faster in this case. ANALYZE helps the query planner to figure out the
// faster path, but it may not have run yet.
let replacementText = "AND +h.visit_count > 0";
return this._db.createAsyncStatement(
SQL_BASE.replace("{ADDITIONAL_CONDITIONS}", replacementText, "g")
);