зеркало из https://github.com/mozilla/gecko-dev.git
Bug 598196 - Use journal_mode = WAL in cookies. r=sdwilsh, a=betaN+
This commit is contained in:
Родитель
f6813f5d5e
Коммит
0cc99ccab8
|
@ -956,6 +956,9 @@ nsCookieService::TryInitDB(PRBool aDeleteExistingDB)
|
|||
// make operations on the table asynchronous, for performance
|
||||
mDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING("PRAGMA synchronous = OFF"));
|
||||
|
||||
// Use write-ahead-logging for performance.
|
||||
mDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING("PRAGMA journal_mode = WAL"));
|
||||
|
||||
// cache frequently used statements (for insertion, deletion, and updating)
|
||||
rv = mDBState->dbConn->CreateStatement(NS_LITERAL_CSTRING(
|
||||
"INSERT INTO moz_cookies ("
|
||||
|
|
Загрузка…
Ссылка в новой задаче