Bug 598196 - Use journal_mode = WAL in cookies. r=sdwilsh, a=betaN+

This commit is contained in:
Dan Witte 2010-10-19 17:24:53 -07:00
Родитель f6813f5d5e
Коммит 0cc99ccab8
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -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 ("