Sqlite pragma tuning for formhistory and history
This commit is contained in:
parent
29d6de3c6e
commit
69c319d62a
2 changed files with 8 additions and 1 deletions
|
@ -531,6 +531,10 @@ formhistory_activate_cb (MidoriExtension* extension,
|
|||
"forms (domain text, field text, value text)",
|
||||
NULL, NULL, &errmsg) == SQLITE_OK))
|
||||
{
|
||||
sqlite3_exec (db,
|
||||
/* "PRAGMA synchronous = OFF; PRAGMA temp_store = MEMORY" */
|
||||
"PRAGMA count_changes = OFF; PRAGMA journal_mode = TRUNCATE;",
|
||||
NULL, NULL, &errmsg);
|
||||
priv->db = db;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -441,7 +441,10 @@ midori_history_initialize (KatzeArray* array,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
sqlite3_exec (db, "PRAGMA journal_mode = TRUNCATE;", NULL, NULL, errmsg);
|
||||
sqlite3_exec (db,
|
||||
/* "PRAGMA synchronous = OFF; PRAGMA temp_store = MEMORY" */
|
||||
"PRAGMA count_changes = OFF; PRAGMA journal_mode = TRUNCATE;",
|
||||
NULL, NULL, errmsg);
|
||||
if (*errmsg)
|
||||
{
|
||||
g_warning ("Failed to set journal mode: %s", *errmsg);
|
||||
|
|
Loading…
Reference in a new issue