Use sqlite WAL mode for history if available
This commit is contained in:
parent
4c4c849441
commit
3e0dc32017
1 changed files with 5 additions and 2 deletions
|
@ -441,9 +441,12 @@ midori_history_initialize (KatzeArray* array,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (sqlite3_exec (db,
|
||||
"PRAGMA journal_mode = WAL; PRAGMA cache_size = 32100;",
|
||||
NULL, NULL, errmsg) != SQLITE_OK)
|
||||
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;",
|
||||
"PRAGMA synchronous = NORMAL; PRAGMA temp_store = MEMORY;",
|
||||
NULL, NULL, errmsg);
|
||||
if (*errmsg)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue