]> spindle.queued.net Git - midori/commitdiff
Allow asynchronous cookie database
authorChristian Dywan <christian@twotoasts.de>
Tue, 6 Mar 2012 19:08:51 +0000 (20:08 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 6 Mar 2012 19:08:51 +0000 (20:08 +0100)
Arguably cookies are like a cache, so we prefer
prefer performance over data integrity.

katze/katze-http-cookies-sqlite.c

index d97dc322235d22e488d7bdbb08f45244049b886e..bf4b5036ee5893e0d74acd12e99d87ea63ac4966 100644 (file)
@@ -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);