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
parent e4c3394a35
commit d2bb67796d

View File

@ -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")
);