From: Christian Dywan Date: Tue, 12 Oct 2010 21:09:12 +0000 (+0200) Subject: Use truncated journal mode for history database X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=324d3c3d6a5621bfcebd24bdf81f861371c50376;p=midori Use truncated journal mode for history database This instructs sqlite to preserve the journal file, which can improve performance and allows it to be a symbolic link. --- diff --git a/midori/main.c b/midori/main.c index 8c9e9ecd..5ed6a357 100644 --- a/midori/main.c +++ b/midori/main.c @@ -368,6 +368,12 @@ midori_history_initialize (KatzeArray* array, return NULL; } + sqlite3_exec (db, "PRAGMA journal_mode = TRUNCATE;", NULL, NULL, errmsg); + if (*errmsg) + { + g_warning ("Failed to set journal mode: %s", *errmsg); + sqlite3_free (*errmsg); + } if (sqlite3_exec (db, "CREATE TABLE IF NOT EXISTS " "history (uri text, title text, date integer, day integer);"