Try WAL mode

This commit is contained in:
Dan Schaper 2016-10-01 20:12:56 -07:00
parent 04b5e1a7d3
commit 2e331cbd73

View file

@ -77,6 +77,9 @@ with conn:
create_tables()
# enable WAL mode
c.execute('PRAGMA journal_mode=WAL;')
# Parse the log file.
for line in open(logfile):
line = line.rstrip()
@ -87,5 +90,3 @@ with conn:
sql = "INSERT INTO gravity (domain) VALUES (?)"
c.execute(sql, (line,))
conn.commit()