From: Christian Dywan Date: Tue, 6 Mar 2012 19:08:51 +0000 (+0100) Subject: Allow asynchronous cookie database X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a83cea4964a5c4395d4ef591e483fa017fd93227;p=midori Allow asynchronous cookie database Arguably cookies are like a cache, so we prefer prefer performance over data integrity. --- diff --git a/katze/katze-http-cookies-sqlite.c b/katze/katze-http-cookies-sqlite.c index d97dc322..bf4b5036 100644 --- a/katze/katze-http-cookies-sqlite.c +++ b/katze/katze-http-cookies-sqlite.c @@ -95,7 +95,8 @@ katze_http_cookies_sqlite_open_db (KatzeHttpCookiesSqlite* http_cookies) } sqlite3_exec (http_cookies->db, - /* "PRAGMA synchronous = OFF; PRAGMA temp_store = MEMORY" */ + /* Arguably cookies are like a cache, so performance over integrity */ + "PRAGMA synchronous = OFF; PRAGMA temp_store = MEMORY;" "PRAGMA count_changes = OFF; PRAGMA journal_mode = TRUNCATE;", NULL, NULL, &error);