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

This commit is contained in:
Dan Witte 2010-10-07 14:01:16 -07:00
parent 4ed4ad788c
commit 246bdbe90c

View File

@ -931,6 +931,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 ("