use WAL on sqlite3

This commit is contained in:
Victor Shyba 2017-07-18 04:29:43 -03:00 committed by Jack Robison
parent 5bbb29fd79
commit 5d69e74010
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -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, " +