mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
Bug 682676 - Urlbar performance regression with SQLite 3.7.7.1.
r=sdwilsh
This commit is contained in:
parent
e4c3394a35
commit
d2bb67796d
@ -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")
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user