From a83cea4964a5c4395d4ef591e483fa017fd93227 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 6 Mar 2012 20:08:51 +0100 Subject: [PATCH] Allow asynchronous cookie database Arguably cookies are like a cache, so we prefer prefer performance over data integrity. --- katze/katze-http-cookies-sqlite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5