From 5d69e74010fdf643279cc1c0ed4453d04a64dafc Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 18 Jul 2017 04:29:43 -0300 Subject: [PATCH] use WAL on sqlite3 --- lbrynet/core/BlobManager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbrynet/core/BlobManager.py b/lbrynet/core/BlobManager.py index b5407604c..cb7d738f9 100644 --- a/lbrynet/core/BlobManager.py +++ b/lbrynet/core/BlobManager.py @@ -137,6 +137,7 @@ class DiskBlobManager(DHTHashSupplier): # threads. def create_tables(transaction): + transaction.execute('PRAGMA journal_mode=WAL') transaction.execute("create table if not exists blobs (" + " blob_hash text primary key, " + " blob_length integer, " +