diff --git a/netwerk/cookie/nsCookieService.cpp b/netwerk/cookie/nsCookieService.cpp index 498a2754bc1f..0765b1a55c1a 100644 --- a/netwerk/cookie/nsCookieService.cpp +++ b/netwerk/cookie/nsCookieService.cpp @@ -1474,6 +1474,10 @@ nsCookieService::TryInitDB(bool aRecreateDB) } } + // make operations on the table asynchronous, for performance + mDefaultDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING( + "PRAGMA synchronous = OFF")); + // Use write-ahead-logging for performance. We cap the autocheckpoint limit at // 16 pages (around 500KB). mDefaultDBState->dbConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(