Merge pull request #1079 from croneter/wal
Don't use WAL mode for sqlite connections, it is not making any difference
This commit is contained in:
commit
4ebe11fcc4
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