diff options
author | Andrew Dolgov <[email protected]> | 2017-07-04 13:40:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-07-04 13:40:36 +0300 |
commit | 00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da (patch) | |
tree | 688b2ea46bce18e5fdb0f0a9a2e8b7a69d4beb3f /db.php | |
parent | dd7c9ed183d8ec3b1ec49ba18535b492062c8820 (diff) |
sqlite: enable WAL
Diffstat (limited to 'db.php')
-rw-r--r-- | db.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6,6 +6,7 @@ class Db { private function __construct() { $this->dbh = new SQLite3(__DIR__ . "/" . SCRATCH_DB); $this->dbh->busyTimeout(30*1000); + $this->dbh->exec('PRAGMA journal_mode = wal;'); } public static function get() { |