forked from LBRYCommunity/lbry-sdk
use WAL on sqlite3
This commit is contained in:
parent
5bbb29fd79
commit
5d69e74010
1 changed files with 1 additions and 0 deletions
|
@ -137,6 +137,7 @@ class DiskBlobManager(DHTHashSupplier):
|
||||||
# threads.
|
# threads.
|
||||||
|
|
||||||
def create_tables(transaction):
|
def create_tables(transaction):
|
||||||
|
transaction.execute('PRAGMA journal_mode=WAL')
|
||||||
transaction.execute("create table if not exists blobs (" +
|
transaction.execute("create table if not exists blobs (" +
|
||||||
" blob_hash text primary key, " +
|
" blob_hash text primary key, " +
|
||||||
" blob_length integer, " +
|
" blob_length integer, " +
|
||||||
|
|
Loading…
Add table
Reference in a new issue