about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2017-07-04 13:40:36 +0300
committerAndrew Dolgov <noreply@fakecake.org>2017-07-04 13:40:36 +0300
commit00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da (patch)
tree688b2ea46bce18e5fdb0f0a9a2e8b7a69d4beb3f
parentdd7c9ed183d8ec3b1ec49ba18535b492062c8820 (diff)
downloadthe-epube-00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da.tar.gz
the-epube-00ff14efa794f2ada3a8dbe51fc4ef2951cfe4da.tar.xz
sqlite: enable WAL
-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() {