summaryrefslogtreecommitdiff
path: root/db.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-04 13:40:36 +0300
committerAndrew Dolgov <[email protected]>2017-07-04 13:40:36 +0300
commit00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da (patch)
tree688b2ea46bce18e5fdb0f0a9a2e8b7a69d4beb3f /db.php
parentdd7c9ed183d8ec3b1ec49ba18535b492062c8820 (diff)
sqlite: enable WAL
Diffstat (limited to 'db.php')
-rw-r--r--db.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/db.php b/db.php
index 1dc8ce0..1654fe5 100644
--- a/db.php
+++ b/db.php
@@ -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() {