Skip to content

Commit

Permalink
Define a lower wal_autocheckpoint for script value DBs.
Browse files Browse the repository at this point in the history
Per comment by @VisualKei on #1879.

Fixes #2036
  • Loading branch information
arantius committed Oct 16, 2014
1 parent 63db53b commit 0d3daa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/miscapis.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function GM_ScriptStorage_getDb() {
this._db.executeSimpleSQL('PRAGMA auto_vacuum = INCREMENTAL;');
this._db.executeSimpleSQL('PRAGMA incremental_vacuum(10);');
this._db.executeSimpleSQL('PRAGMA journal_mode = WAL;');
this._db.executeSimpleSQL('PRAGMA wal_autocheckpoint = 10;');

this._db.executeSimpleSQL(
'CREATE TABLE IF NOT EXISTS scriptvals ('
Expand Down

0 comments on commit 0d3daa6

Please sign in to comment.