Don't use WAL mode for sqlite connections, it is not making any difference
This commit is contained in:
parent
f4ea051c81
commit
9080ca89b9
1 changed files with 4 additions and 3 deletions
|
@ -58,9 +58,10 @@ def _initial_db_connection_setup(conn, wal_mode):
|
|||
before. Also start a transaction
|
||||
"""
|
||||
if wal_mode:
|
||||
conn.execute('PRAGMA journal_mode=WAL;')
|
||||
conn.execute('PRAGMA cache_size = -8000;')
|
||||
conn.execute('PRAGMA synchronous=NORMAL;')
|
||||
pass
|
||||
# conn.execute('PRAGMA journal_mode=WAL;')
|
||||
# conn.execute('PRAGMA cache_size = -8000;')
|
||||
# conn.execute('PRAGMA synchronous=NORMAL;')
|
||||
conn.execute('BEGIN')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue