Allow asynchronous cookie database

Arguably cookies are like a cache, so we prefer
prefer performance over data integrity.
This commit is contained in:
Christian Dywan 2012-03-06 20:08:51 +01:00
parent 1e7ee7db5c
commit a83cea4964

View 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);